title: Spring JMS MQJE001: Completion Code '2', Reason '2042'
body: <p>My setup is Spring 3 JMS, MVC + Websphere MQ + Websphere 7</p>
  
  <pre><code>&lt;!-- this is the Message Driven POJO (MDP) --&gt;
  &lt;bean id="messageListener" class="com.SomeListener" /&gt;
  
  &lt;!-- and this is the message listener container --&gt;
  &lt;bean id="jmsContainer"
      class="org.springframework.jms.listener.DefaultMessageListenerContainer"&gt;
      &lt;property name="connectionFactory" ref="xxxCF" /&gt;
      &lt;property name="destination" ref="someQueue" /&gt;
      &lt;property name="messageListener" ref="messageListener" /&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>When I start up the server, the listener seems to start correctly since it receives the messages that are on the queue as I put them.</p>
  
  <p>However, once I run any simple controller/action that doesn't even have anything to do with JMS it gives me the message below over and over...</p>
  
  <pre><code>DefaultMessag W org.springframework.jms.listener.DefaultMessageListenerContainer handleListenerSetupFailure Setup of JMS message listener invoker failed for destination 'queue:///ABCDEF.EFF.OUT?persistence=-1' - trying to recover. Cause: MQJMS2008: failed to open MQ queue ''.; nested exception is com.ibm.mq.MQException: MQJE001: Completion Code '2', Reason '2042'.
  DefaultMessag I org.springframework.jms.listener.DefaultMessageListenerContainer refreshConnectionUntilSuccessful Successfully refreshed JMS Connection
  
  ConnectionEve W   J2CA0206W: A connection error occurred.  To help determine the problem, enable the Diagnose Connection Usage option on the Connection Factory or Data Source.
  
  ConnectionEve A   J2CA0056I: The Connection Manager received a fatal connection error from the Resource Adapter for resource JMS$XXXQCF$JMSManagedConnection@2. The exception is: javax.jms.JMSException: MQJMS2008: failed to open MQ queue ''.
  
  ConnectionEve W   J2CA0206W: A connection error occurred.  To help determine the problem, enable the Diagnose Connection Usage option on the Connection Factory or Data Source.
  
  ConnectionEve A   J2CA0056I: The Connection Manager received a fatal connection error from the Resource Adapter for resource jms/XXXQCF. The exception is: javax.jms.JMSException: MQJMS2008: failed to open MQ queue ''.
  </code></pre>
  
  <p>The original listener seems to be still running correctly...but I think the controller is somehow triggering off another connection?
  Does anyone know what I should check for or what might cause this issue?</p>
  
  <p>thanks</p>