activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sparky2708 <>
Subject Can't figure out why send to my temporary queue doesn't work but Listener seems OK
Date Mon, 02 Apr 2007 17:01:24 GMT

I create a temporary queue using:

String user = ActiveMQConnection.DEFAULT_USER;
String password = ActiveMQConnection.DEFAULT_PASSWORD;
ActiveMQConnectionFactory connectionFactory = new
ActiveMQConnectionFactory(user, password, jms_url);
_connection = connectionFactory.createConnection();
_session = _connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
Queue queue = _session.createTemporaryQueue();

just fine and get a temporary queue name like:

when I call queue.getQueueName();

The problem is that when I try to send a message to the above-mentioned
queue ActiveMQ creates a new PERMANENT queue with the name:
shows up as: ID_rpc9-2729-1175532482703-0_0_1 in the tree in jconsole

In jconsole I can see that my temporary queue has 1 consumer which proves
that I can listen to the RIGHT queue because I am just re-using the
destination object that created the temporary queue. Why can't I
programmatically send anything to the temporary queue? What queue name
should I use to send to the temporary queue?

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

View raw message