Thanks for suggest, I send a part of my conf. with this configuration I'll start transaction reading message from queue it self
<bean id="activemq" class="org.apache.activemq.camel.component.ActiveMQComponent"> <property name="connectionFactory"> <osgi:reference interface="javax.jms.ConnectionFactory" /> </property> <property name="transacted" value="true" /> <property name="transactionManager"> <osgi:reference interface="org.springframework.transaction.PlatformTransactionManager" /> </property> </bean> and in my route I used as component activemq thanks --Filippo Il 17 gennaio 2012 16:29, dattu.1729 <dattu.1...@gmail.com> ha scritto: > Transacted starts new transaction after reading message from Queue. So need > to start transaction while reading message from queue it self. add > transacted to true at component level. try with below configuration > > > <bean id="jmsMqConf" > class="org.apache.camel.component.jms.JmsConfiguration"> > <property name="connectionFactory" ref="jmsMqCF" /> > *<property name="transacted" value="true" />* > <property name="transactionManager" > ref="jtaTransactionManager" /> > </bean> > > > <bean id="jmsmq" class="org.apache.camel.component.jms.JmsComponent"> > <property name="configuration" ref="jmsMqConf" /> > </bean> > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Lost-message-with-Transactionl-client-tp5150868p5151890.html > Sent from the Camel - Users mailing list archive at Nabble.com.