Because I use "org.apache.commons.dbcp.managed.BasicManagedDataSource" instead of "com.atomikos.jdbc.AtomikosDataSourceBean". I also use "org.apache.activemq.pool.XaPooledConnectionFactory" instead of "com.atomikos.jms.AtomikosConnectionFactoryBean".
Pascal Leclercq from Atomikos already forked my Git repo and made some changes on this configuration. He use the "com.atomikos.jdbc. AtomikosDataSourceBean" and "com.atomikos.jms.AtomikosConnectionFactoryBean". May be his configuration works also for you [1]. Make sure you use transacted=true in "org.apache.activemq.camel.component.ActiveMQComponent". [1] https://github.com/pascalleclercq/camel-in-transaction/blob/master/src/test/resources/META-INF/spring/JmsAndJdbcXATransactionSampleWithAtomikosTest-context.xml Best, Christian On Thu, Apr 4, 2013 at 8:38 PM, yxzhao <yxz...@stonewain.com> wrote: > I saw you commented out the dataSource declaration with > com.atomikos.jdbc.AtomikosDataSourceBean on the bottom and used > org.apache.commons.dbcp.managed.BasicManagedDataSource instead. > > What was the reason for that? I don't see a way of setting the jta > transaction manager with atomikos data source bean. Is that the reason? > > Thanks. > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Camel-JMS-with-Atomikos-UserTransactionManager-not-consuming-Messages-tp5730286p5730355.html > Sent from the Camel - Users mailing list archive at Nabble.com. >