activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james.strac...@gmail.com>
Subject Re: Can't figure out why send to my temporary queue doesn't work but Listener seems OK
Date Mon, 02 Apr 2007 17:08:01 GMT
On 4/2/07, sparky2708 <daa82@columbia.edu> wrote:
>
> 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();

You should be sending messages to this queue object (which is an
instanceof ActiveMQTempQueue.  You should not be extracting the queue
name then using that name to send to.
-- 

James
-------
http://radio.weblogs.com/0112098/

Mime
View raw message