I have an issue concerning JMS. They are retrieved from an event database and sent via ActiveMQ broker to an ESB.
When JMS are sent they are marked as sent in the event database. The process is supposed to be transactional.
However, I noticed that som JMS were marked as sent while they were not received. I've studied this issue and noticed that distributed transactions were not implemented which led to the loss of JMS. They were marked as sent in event database but the ESB to which they were sent threw an error and JMS was not received.
At that point database transaction should have been rollbacked but it is not as both transaction were not managed.
I implemented Atomikos transaction coordinator to handle both transactions. Now I'd like to test my new configuration.
I heard there was a way to test both transactions handling but I found no examples. Do you have any idea or example ?
Technologies : Spring Integration, ActiveMQ, Atomikos