JMS and Distributed Transaction
I'm working on a project where EJB 3.0 technology is being used for remoting layer (JAX-WS Web services, MDBs for JMS and EJB for RMI-IIOP) and Spring 2.5 is being used at service and persistency (Spring-iBATIS integration) layers. We don't have a presentation layer since all clients will access services over remoting layer.
Normally, transaction demarcation is performed in service layer using @Transactional annotation. EJB layer simply delegates remote requests to Spring service beans. This ok for web services and EJB remoting since EJB doesn't know anything about transactions. But I'm little confused with MDB scenario. In order to support distributed transactions, spring service beans should be joined to the transaction started by EJB Container. Because in that case, (as far as know) transaction starter is EJB Container, not the Spring...
Although i searched for documents to learn that it's doable, i couldn't figure out it is ok or not? Is spring capable of joining transactions started by Ejb container? If so, is there any mechanism that i can use to see the transaction details?
Any help is appreciated,
Turkiye Is Bankasi