title: JMS connection to remote client
body: <p>I'm trying to test a JMS Application, I don't have a problem with the consumer , but when I try to run the producer which have the following code </p>
  
  <pre><code>public class QueueProducer {
  
      /**
       * @param args
       * @throws NamingException
       * @throws JMSException
       */
      public static void main(String[] args) throws JMSException, NamingException {
          System.out
                  .println("--------Entering JMS Example QueueProducer--------");
          Context context = QueueConsumer.getInitialContext();
          QueueConnectionFactory queueConnectionFactory = (QueueConnectionFactory) context
                  .lookup("ConnectionFactory");
          Queue queue = (Queue) context
                  .lookup("queue/zaneacademy_jms_tutorial_02");
          QueueConnection queueConnection = queueConnectionFactory
                  .createQueueConnection();
          QueueSession queueSession = queueConnection.createQueueSession(false,
                  QueueSession.AUTO_ACKNOWLEDGE);
          queueConnection.start();
          QueueProducer queueProducer = new QueueProducer();
          queueProducer.sendMessage("Message 1 From QueueProducer...",
                  queueSession, queue);
          System.out.println("--------Exiting JMS Example QueueProducer--------");
      }
  
      public void sendMessage(String text, QueueSession queueSession, Queue queue)
              throws JMSException {
          QueueSender queueSender = queueSession.createSender(queue);
          TextMessage textMessage = queueSession.createTextMessage(text);
          queueSender.send(textMessage);
          System.out.println("Message Sent : "+textMessage.getText());
          queueSender.close();
      }
  
  }
  </code></pre>
  
  <p>It display just the message in producer, after a few seconds it display this warning </p>
  
  <pre><code> WARN  [SimpleConnectionManager] A problem has been detected with the connection to remote client 5c4o12-  tsh1gl-hfybsrs4-1-hfybss2a-4, jmsClientID=b-l5ssbyfh-1-4srsbyfh-lg1hst-21o4c5. It is possible the client has exited without closing its connection(s) or the network has failed. All associated connection resources will be cleaned up.
  </code></pre>