Have you find an answer to your question or implemented something by yourself ? If this is the case, can you share this information please ?
Unfortunately I don`t find any information or working implementation (
May be it is time to create JIRA request about missing documentation/sample...
I guess you want to link the DB and ActiveMQ together with Camel -- in that case, it should just be a matter of configuring the xa datasource/mq connection pool inside spring to point to the same transaction manager.
The easiest to get to the TransactionManager instance is by adding an
<osgi:reference id="transactionManager" interface="javax.transaction.TransactionManager"/> -- this will get you to the instance provided by the ServiceMix Transaction bundle.
I've raised https://issues.apache.org/activemq/browse/SMX4-486 to get an example added as well, so if you would manage to get anything working in the meanwhile feel free to add a comment (or patch) to that issue to help speed things up.
Any news on this. I'm running into same issues setting up XA in ESB 4.1 ??