Forums Register Login

Threads and transactions

+Pie Number of slices to send: Send
I have a quick question about threads and transactions.

Does the J2EE spec guarantee a single thread per transaction? That is, during the course of a transction, can the execution of the transaction switch to a different thread?

If a single thread is guaranteed for a transaction, does that hold true when a transaction encompasses calls between applications deployed in different ears on the same JVM (container)?

Thanks!
+Pie Number of slices to send: Send
The J2EE spec. guarentees nothing about threads, whether in a transaction or not, other than they are the sole responsibility of the container. So you should not have to worry about them at all.
Aaaaaand ... we're on the march. Stylin. Get with it tiny ad.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 601 times.
Similar Threads
JTA
NX: Locking and Unlocking and Sun's Must Conditions
JTA and Container managed transactions
Container Managed Transaction - Synchronization question
Connection pooling vs using a single connection
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 22:39:45.