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#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...