2 Replies Latest reply on Mar 18, 2003 2:19 PM by Mike Karrys

    JMS onException not being thrown

    Mike Karrys Newbie

      I have an application which runs on a client and connects to jboss over a network via JMS. When do onException's get thrown. If I shutdown jboss and try to connect my application runs through the factory, and queue creation without throwing an exception. It only throws an execption when I try to send data to jboss and then it is a NullPointerException. If jboss is running everything works great but I need to be able to recover from connection failures. Shouldn't I get an onException() after the queueConnection.start() if jboss is not running. (Please ignore any typos in this code)

      queueFactory = (QueueConnectionFactory) jndiContext_m.lookup(QUEUE_CONNECTION_FACTORY );
      queueConnection = queueFactory.createQueueConnection();
      queueSession = queueConnection.createQueueSession( false, Session.AUTO_ACKNOWLEDGE );