Monday, August 19, 2013

Java::JavaxJms::JMSException: There is no queue with name "/queues/YourQueue"

If you are trying to publish messages to a remote destination using the torquebox-messaging gem you will no doubt run into the same issue that I did:

Java::JavaxJms::JMSException: There is no queue with name "/queues/YourQueue" [https://gist.github.com/arielvalentin/6276714]

It turns out that the TorqueBox::Messaging::ConnectionFactory uses the HornetQJMSClient under the hood and bypasses JNDI so you just have to specify the queue name and not the JNDI key.

You can read more about how to skip JNDI here: http://docs.jboss.org/hornetq/2.2.2.Final/user-manual/en/html/using-jms.html#d0e1328

Happy Publishing.



No comments: