[rabbitmq-discuss] RabbitMQ JMS Client
Jonathan Skrzypek
jonathan.skrzypek at gs.com
Thu Oct 24 12:35:52 BST 2013
Hi,
Thanks for this exhaustive answer !
In fact the issue was unrelated to JNDI/Objectfactory, it was just the way I
set up host/port.
But so then I managed to get/use a factory 2 ways ;
- Create a new one as mentioned => connectionFactory = new
RMQConnectionFactory();
- With the object factory but tricking the createConnectionFactory() with
dummy references and names
javax.naming.Reference ref = new javax.naming.Reference("ref");
Name a = null;
RMQObjectFactory ObjectFactory = new RMQObjectFactory();
connectionFactory = (RMQConnectionFactory)
ObjectFactory.createConnectionFactory(ref,a);
Unusual indeed, but it's working.
Jonathan
--
View this message in context: http://rabbitmq.1065348.n5.nabble.com/RabbitMQ-JMS-Client-tp30766p30815.html
Sent from the RabbitMQ mailing list archive at Nabble.com.
More information about the rabbitmq-discuss
mailing list