Announcement Announcement Module
Collapse
No announcement yet.
Setup of JMS message listener invoker failed Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Setup of JMS message listener invoker failed

    Hi guys,

    I'm actually trying to setup Websphere MQ bridging in ActiveMQ using Camel JMS Components... but I'm getting a springframework exception which I'm unable to analyse. Using the following configuration (which I've found as example on many webpages)...

    <bean id="mqConnectionFactory" class="com.ibm.mq.jms.MQQueueConnectionFactory">
    <property name="hostName" value="Test" />
    <property name="port" value="1414" />
    <property name="queueManager" value="CSQ" />
    <property name="channel" value="CO.TEST" />
    <property name="transportType" value="1" />
    </bean>

    .... I'm getting the following exception.


    ERROR efaultMessageListenerContainer - Setup of JMS message listener invoker failed - trying to recover
    javax.jms.IllegalStateException: MQJMS1112: JMS1.1 Ungültige Operation für domänenspezifisches Objekt
    at com.ibm.mq.jms.MQQueueSession.createTopic(MQQueueS ession.java:633)
    at org.springframework.jms.support.destination.Dynami cDestinationResolver.resolveTopic(DynamicDestinati onResolver.java:86)
    at org.springframework.jms.support.destination.Dynami cDestinationResolver.resolveDestinationName(Dynami cDestinationResolver.java:63)
    at org.springframework.jms.support.destination.JmsDes tinationAccessor.resolveDestinationName(JmsDestina tionAccessor.java:100)
    at org.springframework.jms.listener.AbstractPollingMe ssageListenerContainer.createListenerConsumer(Abst ractPollingMessageListenerContainer.java:215)
    at org.springframework.jms.listener.DefaultMessageLis tenerContainer$AsyncMessageListenerInvoker.initRes ourcesIfNecessary(DefaultMessageListenerContainer. java:903)
    at org.springframework.jms.listener.DefaultMessageLis tenerContainer$AsyncMessageListenerInvoker.invokeL istener(DefaultMessageListenerContainer.java:886)
    at org.springframework.jms.listener.DefaultMessageLis tenerContainer$AsyncMessageListenerInvoker.run(Def aultMessageListenerContainer.java:822)
    at java.lang.Thread.run(Unknown Source)


    How can I convince spring NOT to create a listener at this stage, especially not a topic on a queue session?

    Regards
    Martin

  • #2
    I've got it working

    Just in case someone is facing a similar problem. Here my solution:

    The following works for me:

    <bean id="webspheremq" class="org.apache.camel.component.jms.JmsComponent ">
    <property name="connectionFactory">
    <bean class="org.springframework.jms.connection.UserCred entialsConnectionFactoryAdapter">
    <property name="targetConnectionFactory">
    <bean class="com.ibm.mq.jms.MQQueueConnectionFactory">
    <property name="hostName" value="Test"/>
    <property name="port" value="1414"/>
    <property name="queueManager" value="CSQ"/>
    <property name="channel" value="CO.TEST"/>
    <property name="transportType" value="1"/>
    </bean>
    </property>
    <property name="username" value="xxxxxx"/>
    <property name="password" value="xxxxxx"/>
    </bean>
    </property>
    </bean>

    Cheers,
    Martin

    Comment

    Working...
    X