activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yahav Biran <>
Subject using existing queue
Date Tue, 03 Jul 2007 08:26:25 GMT

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();
Session session = connection.createSession(transacted,
destination = session.createQueue(subject);

please advice,

View this message in context:
Sent from the ActiveMQ - Dev mailing list archive at

View raw message