You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by javaxmlsoapdev <ja...@yahoo.com> on 2012/11/09 21:12:10 UTC
Setup of JMS message listener failed Exception JmsComponent
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-failed-Exception-JmsComponent-tp5722452.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Setup of JMS message listener failed Exception JmsComponent
Posted by javaxmlsoapdev <ja...@yahoo.com>.
Indeed it was missing jta jar in maven dependency. found out the full
stacktrace where spring code was eating the exception after debugging
spring-jms soruce.
--
View this message in context: http://camel.465427.n5.nabble.com/Setup-of-JMS-message-listener-failed-Exception-JmsComponent-tp5722452p5722625.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Setup of JMS message listener failed Exception JmsComponent
Posted by Charles Moulliard <ch...@gmail.com>.
Seems that the JTA Tx Manager is not there.
On Mon, Nov 12, 2012 at 9:07 PM, javaxmlsoapdev <ja...@yahoo.com>wrote:
> yeah. Queue definitely exists, i am able to connect through other tool.
>
> I am using camel version 2.10.0. As such there is no stack trace since
> camel/spring reports that as a WARN
>
> 2012-11-12 14:54:34.231 [Camel (camelContext) thread #1 - JmsConsumer[]
> [WARN ] org.apache.camel.component.jms.DefaultJmsMessageListenerContainer -
> Setup of JMS message listener invoker failed for destination 'queueName' -
> trying to recover. Cause: javax/transaction/TransactionManager
>
> Any idea?
>
>
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Setup-of-JMS-message-listener-failed-Exception-JmsComponent-tp5722452p5722624.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
--
Charles Moulliard
Apache Committer / Sr. Enterprise Architect (RedHat)
Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com
Re: Setup of JMS message listener failed Exception JmsComponent
Posted by javaxmlsoapdev <ja...@yahoo.com>.
yeah. Queue definitely exists, i am able to connect through other tool.
I am using camel version 2.10.0. As such there is no stack trace since
camel/spring reports that as a WARN
2012-11-12 14:54:34.231 [Camel (camelContext) thread #1 - JmsConsumer[]
[WARN ] org.apache.camel.component.jms.DefaultJmsMessageListenerContainer -
Setup of JMS message listener invoker failed for destination 'queueName' -
trying to recover. Cause: javax/transaction/TransactionManager
Any idea?
--
View this message in context: http://camel.465427.n5.nabble.com/Setup-of-JMS-message-listener-failed-Exception-JmsComponent-tp5722452p5722624.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Setup of JMS message listener failed Exception JmsComponent
Posted by Christian Müller <ch...@gmail.com>.
Does the queue exist?
Can you share the complete stack trace?
Which version of Camel do you use?
Sent from a mobile device
Am 10.11.2012 08:50 schrieb "javaxmlsoapdev" <ja...@yahoo.com>:
> 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-failed-Exception-JmsComponent-tp5722452.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>