activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sparky2708 <da...@columbia.edu>
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();
_connection.setExceptionListener(this);
_connection.start();
_session = _connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
Queue queue = _session.createTemporaryQueue();

just fine and get a temporary queue name like:
-----------------------------------------------------------

ID:rpc9-2729-1175532482703-0:0:1
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:
ID:rpc9-2729-1175532482703-0:0:1
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: http://www.nabble.com/Can%27t-figure-out-why-send-to-my-temporary-queue-doesn%27t-work-but-Listener-seems-OK-tf3506946s2354.html#a9794710
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message