On 7/3/07, Yahav Biran <[EMAIL PROTECTED]> wrote:

I created a physical queue in the activemq.xml so the queue is created on the
startup of the activemq.
i can see this queues by typing:activemq query
now i would like to produce message to the existing queue.
im trying to find a way to discover the exisitng queue.
in the sample code it looks that we are creating a new queue:
ActiveMQConnectionFactory connectionFactory = new
ActiveMQConnectionFactory(user, password, url);
connection = connectionFactory.createConnection();
connection.start();
Session session = connection.createSession(transacted,
Session.AUTO_ACKNOWLEDGE);
destination = session.createQueue(subject);

Yes thats fine. More detail here:
http://activemq.apache.org/how-do-i-create-new-destinations.html

--
James
-------
http://macstrac.blogspot.com/

Reply via email to