Normally no, @Resource private TransactionManager transactionManager;
or with a specified name if you prefer @Resource(name = "java:comp/TransactionManager") // or java:comp/env/comp/TransactionManager for some older tomee versions private TransactionManager transactionManager; work to get injected by TomEE the transaction manager. Did you remove the parameters from your producer? Just a new JtaTransactionManager() without any configuration should also work relying on defaults of spring. The unsatisfied exception you get is cause spring is scanned as a EE library and does a @Inject TransactionManager mgr;. Just add in conf.exclusions.list: default-list spring- and it should work Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://blog-rmannibucau.rhcloud.com> | Old Wordpress Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> | LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber <http://www.tomitribe.com> | JavaEE Factory <https://javaeefactory-rmannibucau.rhcloud.com> 2016-07-29 20:17 GMT+02:00 dimas <[email protected]>: > Is there anything else i need to do besides just reference it as @Resource? > It's still 'null' > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Camel-JPA-JTA-Transaction-TomEE-tp5785642p5785653.html > Sent from the Camel - Users mailing list archive at Nabble.com. >
