This content has been marked as final.
Show 2 replies
-
1. Re: how to connect to JB messaging outside of jboss server
peterj May 11, 2009 12:20 PM (in response to pierods)For a stand-alone clinet, use something like this:
Context initial = new InitialContext(); ConnectionFactory cf = (ConnectionFactory)initial.lookup("ConnectionFactory"); Destination dest = (Destination)initial.lookup("name-of-topic-or-queue"); Connection connection = cf.createConnection(); Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
-
2. Re: how to connect to JB messaging outside of jboss server
pierods May 12, 2009 6:00 AM (in response to pierods)Thanks!
I hadn't thought of the fact that jndi can return an rmi stub of the connection factory.