[jboss-user] [Clustering/JBoss] - Re: Can't reconnect to JMS server after cluster node goes do

kratosh do-not-reply at jboss.com
Sun Jan 28 03:41:11 EST 2007


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



More information about the jboss-user mailing list