A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Badass: Making Users Awesome
this week in the
EJB and other Java EE Technologies
Threads and transactions
Joined: Jan 07, 2002
Jan 06, 2005 07:46:00
I have a quick question about threads and transactions.
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)?
Jeff Wisard<br />Sun Certified Java Programmer (Java 2)<br />Sun Certified Web Component Developer
Joined: Apr 14, 2004
Jan 07, 2005 03:05:00
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.
I agree. Here's the link:
subject: Threads and transactions
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
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015