Regular |
|
Joined: Sat Nov 25, 2006 11:37 am Posts: 72
|
Can you tell us a little bit more of what you are trying to do and the environment. In an typical J2SE environment not using JTA your transaction is coupled to the session. This is actually where you get it from in the first place. Therefore opening a 2nd session is starting a 2nd independent transaction. In a J2EE and/or JTA environment it is different as it allows you to run a distributed transaction, that is multiple sessions can connect to the same transaction. But this typically only makes sense if you connect to different resources.
|
|