J2EE-integration using the JCA adapter has some drawbacks:
- a large codebase to be maintained,
- buggy or restricted when used in JBOSS (
http://www.jpox.org/servlet/forum/viewthread?thread=3000)
An alternative approach is to use the applications server's TransactionManager directly, see
http://www.jpox.org/servlet/forum/viewthread?thread=3000 .
A first implementation (JtaSyncedTransaction) proves to be working in JBOSS when used in code without SessionBeans. Such code must pool/cache PersistenceManager instances by itself, something that is undesirable for SessionBeans.
For use with SessionBeans, please see a follow-up JIRA issue on this subject.