log.info(e.getMessage());
log.trace(e.getMessage());
   public void testSetMessageListenerWhileReceiving() throws Exception   {      if (log.isTraceEnabled()) log.trace("testSetMessageListenerWhileReceiving");      consumerConnection.start();      worker1= new Thread(new Runnable()      {         public void run()         {            try            {               topicConsumer.receive(3000);            }            catch(Exception e)            {               e.printStackTrace();            }         }}, "Receiver");      worker1.start();      Thread.sleep(100);      try      {         topicConsumer.setMessageListener(new MessageListenerImpl());         fail("should have thrown JMSException");      }      catch(JMSException e)      {          // ok         log.info(e.getMessage());      }   }