Transaction Management - JTA, JCA, or both?
843853Jul 25 2001 — edited Jan 11 2002I am pretty new to both JTA and JCA, but I want to handle global transactions to multiple databases in my Java application. I am considering implementing either JTA or JCA to accomplish this. The JCA spec says it handles transaction management as well. If I implement JCA using a J2EE App server, and a JDBC driver that supports 2-phase commit; is it sufficient, or should I implement JTA as well? Is one better than the other? Or would that be redundant because I know that the ManagedConnection.getXAResource() method returns a javax.transaction.xa.XAResource. Does that mean that if I use JCA, I'm automatically using JTA?
Also, if I use session beans, what are the pro's and con's of using CMT or BMT?
-Thanks for your help