Announcement Announcement Module
Collapse
No announcement yet.
JMS message-driven-channel-adapter and Websphere MQ Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • JMS message-driven-channel-adapter and Websphere MQ

    Hi chaps,

    (Using spring 256 and spring-integration 103. MQ client 6.0.2.2)

    I have had to add a message selector to my message-driven-channel-adapter, but now I am getting the following error:

    MQJMS2008: failed to open MQ queue ; nested exception is com.ibm.mq.MQException: MQJE001: Completion Code 2, Reason 2085

    It works when I used ActiveMQ as a test harness.

    My configuration:

    Code:
    <jms:message-driven-channel-adapter 
        id="jmsIn" 
        channel="inboundMessage" 
        container="myContainer"/>
    
    <bean id="myContainer" class="org.springframework.jms.listener.DefaultMessageListenerContainer">
        <property name="connectionFactory" ref="connectionFactory"/>
        <property name="destinationName" value="myQueue"/>
        <property name="messageSelector" ref="messageSelector"/>
        <property name="transactionManager" ref="txManager"/>
    </bean>
    If I revert to my previous configuration it's all good (except I don't have a message selector!)

    Code:
    <jms:message-driven-channel-adapter 
        id="jmsIn" 
        destination="tradeQueue" 
        channel="inboundMessage" 
        transaction-manager="txManager"/>
    Help urgently required and very much appreciated.

    Paul

  • #2
    Ah!

    Where I put

    Code:
    <property name="destinationName" value="myQueue"/>
    I should have put

    Code:
    <property name="destinationName" ref="myQueue"/>
    What a silly boy!

    P

    Comment

    Working...
    X