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
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to