Hi Deepak,
As mentioned in previous mails from David and Christian, the OSGi Transaction Control Service (with an implementation in Aries) supports both managed transactions (both XA and local) in an easily consumable way. You can use Transaction Control in DS components, blueprint beans, or any other component model.
There are already transaction control resource providers implemented for JDBC and JPA. As Christian mentions, the Aries Transaction Control JPA support makes use of the OSGi JPA Service, of which Aries JPA is an implementation. If you’re not using JPA then there is no need to include a JPA Service implementation.
To answer your question about myBatis, no resource provider exists for it, but it should be relatively simple to add one to the Aries Transaction Control project. Transaction Control is designed to be modular and extensible, so this would be “just another provider” to add to the project. Aries tx-control already has a “common” project which provides much of the infrastructure for implementing a resource provider, it would just be a case of defining a myBatis provider factory service interface and defining the scope delegating handlers.
I hope this helps with your research.
Regards,