[jboss-user] [JBoss Messaging] - Re: how to connect to JB messaging outside of jboss server
PeterJ
do-not-reply at jboss.com
Mon May 11 12:20:59 EDT 2009
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);
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4230131#4230131
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4230131
More information about the jboss-user
mailing list