Axon transaction management in EE 6

Hello,

we want to start using Axon in our java EE6 application. I got everything to work until I started using tracking event processors in stead of subscribinig event processors.
The tracking event handlers are started in a seperate thread and rely on a TransactionManager to start the necessary transactions. I can only find a SpringTransactionManager implementation for the transactionManger interface.

Is it possible to use Axon tracking event processors in combination with container managed transactions?

Best Regards,
Jurgen

Hi Jurgen,

you’re probably best off writing an Axon TransactionManager that delegates the creation (and the commit/rollback) to your EE Transaction Manager. I haven’t looked into how javaEE 8 manages transactions, but the javax.transaction.TransactionManager interface seems pretty straightforward.

Hope this helps.
Cheers,

Allard