我的設置是春季3個JMS,MVC +的WebSphere MQ +的Websphere 7春JMS MQJE001:完成代碼 '2',原因是 '2042'
<!-- this is the Message Driven POJO (MDP) -->
<bean id="messageListener" class="com.SomeListener" />
<!-- and this is the message listener container -->
<bean id="jmsContainer"
class="org.springframework.jms.listener.DefaultMessageListenerContainer">
<property name="connectionFactory" ref="xxxCF" />
<property name="destination" ref="someQueue" />
<property name="messageListener" ref="messageListener" />
</bean>
當我啓動服務器,聽者似乎開始正確的,因爲它接收隊列中的消息,因爲我把它們。
但是,一旦我運行任何簡單的控制器/的行動,甚至沒有任何與JMS它給我的消息,下面一遍又一遍......
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 [email protected] 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 ''.
原來的聽衆似乎是仍然正常運行...但我認爲控制器以某種方式觸發另一個連接? 有誰知道我應該檢查什麼或可能會導致此問題?
感謝
當我啓動websphere時,監聽器和一切工作正常。一旦我點擊一個動作像\t @RequestMapping(「/ doSomething」) \t public String doSomethingHandler()拋出異常{..........它開始重複2042錯誤 – john 2011-02-15 15:36:40
我認爲主要問題是爲什麼打一個彈簧控制器讓偵聽器嘗試創建另一個連接? – john 2011-02-15 15:47:54