Is it possible to share a transaction between two seperate JBossMQ installations. Say, I have two seperate Jboss installations A and B.
- A starts a transaction
- A send a JMS message
- B accepts the message and inserts some data into a database
- A detects an error and performs a rollback
Is there a way to let server B rollback its inserts initiated by the rollback of server A.
No that is fundamentally not supported by JMS.
The send and receive are always in different transactions.
The send is to the server and the receive is from the server.
The clients know nothing about each other.