I have a Java based web application. I am using Spring Integration to integrate with Database (Jpa Outbound Adapter) and Tibco EMS (JMS outbound adapter). However, now I need to put some code where the same message needs to be 1. persisted in database and 2. sent over JMS.
The issue is these activities (1 and 2) need to happen in a transaction. Either both happens or none. I am trying to achieve this with Bitronix. However as of now I have not been able to get it done. I am getting errors which in plain english means (pardon my translation here) "we can not achieve transaction outside XA transaction.
Has anyone tried this before. Any help will be appreciated.
Thanks,