On Thursday 12 July 2007 12:19:28 pm Mark Little wrote:
On 12 Jul 2007, at 18:13, Steve Ebersole wrote:
> Does JTA/JTS mandate that a UserTransaction reference obtained and
> held indefinitely understand the context in which calls against it
> are invoked? And that it react accordingly?
JTS knows nothing about UserTransaction. The closest equivalent is
OTS::Current.
UserTransaction works on the thread-to-transaction association. Some
implementations I've seen give out a thread specific instance of
UserTransaction. But the common implementation is one instance that
does the multiplexing behind the scenes, so you can share the same
instance between multiple threads.
Ok, words here like "some" and "common" make me nervous ;)