I took this excerpt from the J2EE tutorial to mean that transactions using JTA transcend database connections.
In a stateful session bean with a JTA transaction, the association between the bean instance and the transaction is retained across multiple client calls. Even if each business method called by the client opens and closes the database connection, the association is retained until the instance completes the transaction.
In a stateful session bean with a JDBC transaction, the JDBC connection retains the association between the bean instance and the transaction across multiple calls. If the connection is closed, the association is not retained.
How could this be done though? I thought that JTA would be internally working with standard JDBC transaction locks, but I guess thats not the case.
Thanks in advance.