activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james.strac...@gmail.com>
Subject Re: using existing queue
Date Tue, 03 Jul 2007 09:36:25 GMT
On 7/3/07, Yahav Biran <biran@alcatel-lucent.com> 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/

Mime
View raw message