camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mattmadhavan <>
Subject Camel/ActiveMQ RequestReply Transaction Question
Date Wed, 23 Jul 2014 14:16:18 GMT
I have some basic questions on Camel/ActiveMQ transactions with
request/reply jms endpoints/

Have the following route. ( i basically took the example request/reply jms
example from the Camel in action book and springiified).

When I have the transactionManager attribute pf the ActiveMQ component
commented I am able to send and receive message from jms:incomingOrders to
jms:validate and back from within a transaction (please note the <transacted

  <bean id="jms"
    <property name="connectionFactory" ref="connectionFactory"/>

  <camelContext xmlns="" trace="true">

      <from uri="jms:incomingOrders"/>
     <transacted ref="PROPAGATION_REQUIRED"/>

     <log message="   ==============================> Processing message:
       <inOut uri="jms:validate"/>
      <to uri="mock:out"/>
      <log message="   ==============================> After Validation
message: ${body}"/>
      <from uri="jms:validate"/>
            <transacted ref="PROPAGATION_NOT_SUPPORTED"/>      
            <log message="    +++++++++++++++++++++++++++++++++++++>
Processing message: ${body}"/>
      <bean ref="validator"/>

But when I uncomment /enable the transactionManager property of the
JMS(ActiveMQ) component, the request to jms:validate times out!

  <bean id="jms"
    <property name="connectionFactory" ref="connectionFactory"/>
    property name="transactionManager" ref="jmsTransactionManager"/>

I do understand the processing within jms:validate works in its own thread
and hence the transaction is not propagated.

My basic question is can I have JMS reuest/reply from with in another jms
end point that is transacted.

Any ideas please? Also if you guys can point me to documentation regarding
this I will appreciate it.

I appreciate in advance 

Matt G. Madhavan
View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message