In the ejbRemove() method i do _queueConnection.close();
In the ejbCreate() method i lookup the quque and create the session.
Here is the relevant code from ejbCreate():

 _queueConnectionFactory = (QueueConnectionFactory) 
_jndiContext.lookup("ConnectionFactory");
      _queue = (Queue) _jndiContext.lookup(_queueName);
      _queueConnection =_queueConnectionFactory.createQueueConnection();
      _queueSession =
          _queueConnection.createQueueSession(false,
                                             Session.AUTO_ACKNOWLEDGE);
      _queueSender = _queueSession.createSender(_queue);

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4007382#4007382

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4007382
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to