camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Setup of JMS message listener invoker failed for destination
Date Sat, 10 Nov 2012 08:13:30 GMT
Hi

You need to use JNDI to lookup the queue when using WebSphere.

Something a bit like this with the jee jndi lookup and using that
destination resolver.
http://stackoverflow.com/questions/7390908/can-apache-camel-connect-to-an-activationspec-in-websphere

There has also been posts to this @user list in the past showing a
solution for WebSphere.
Its basically the same you have to do if using plain Spring JMS with
WebSphere, so there ought to be plenty of google hits that can lead
you on the way.



On Fri, Nov 9, 2012 at 8:31 PM, javaxmlsoapdev <javaxmlsoapdev@yahoo.com> wrote:
> My config looks as below for connecting to IBM WebSphere MQ.
>
> <bean id="wmq" class="org.apache.camel.component.jms.JmsComponent">
>                 <property name="connectionFactory" ref="cachedConnectionFactory" />
>                 <property name="transactionManager" ref="jmsTransactionManager"/>
>                 <property name="transacted" value="true" />
>
>                 <property name="asyncConsumer" value="true" />
>                 <property name="concurrentConsumers" value="5" />
>                 <property name="errorHandlerLoggingLevel" value="ERROR" />
>                 <property name="errorHandlerLogStackTrace" value="false" />
>         </bean>
>
>         <bean id="cachedConnectionFactory"
>                 class="org.springframework.jms.connection.CachingConnectionFactory"
>                 destroy-method="destroy">
>                 <property name="sessionCacheSize" value="50" />
>                 <property name="targetConnectionFactory">
>                         <ref bean="queueConnectionFactory" />
>                 </property>
>         </bean>
>         <bean id="queueConnectionFactory"
> class="com.ibm.mq.jms.MQQueueConnectionFactory">
>                 <property name="hostName" value="hostvalue" />
>
>                 <property name="port" value="xxx" />
>                 <property name="queueManager" value="xxx" />
>                 <property name="channel" value="xxx" />
>                 <property name="transportType" value="1" />
>         </bean>
>
> When route starts which has from("wmq:queue:queuName") it throws following
> warning and doesn't consuem messages from the queue. I have all transaction
> related jars in my maven dependencies, any idea what's missing in here?
>
> [Camel (camelContext) thread #1 - JmsConsumer[QUEUE_NAME]] [WARN ]
> org.apache.camel.component.jms.DefaultJmsMessageListenerContainer - Setup of
> JMS message listener invoker failed for destination 'QUEUE_NAME' - trying to
> recover. Cause: javax/transaction/TransactionManager
>
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Setup-of-JMS-message-listener-invoker-failed-for-destination-tp5722448.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cibsen@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Mime
View raw message