On Aug 14, 2009, at 11:33 AM, Manik Surtani wrote:
On 13 Aug 2009, at 19:11, Emmanuel Bernard wrote:
>
> Infini guys, do you support transactional operation spanning several
> concurrent threads?
The *same* tx on different threads? That's disallowed by the JTA
spec.
A transaction can only be associated with one thread at *a moment*.
However, if a thread suspends a tx and then another thread tries to
resume it TM.resume - this might be allowed, depending on the used TM.
JTA specs says that "Note that sometransaction manager implementations
allow a suspended transaction to
be resumed by a different thread. This feature is not required by JTA."
However, I would expect most of the TM to support this feature: think
about an SFSB that has a transaction that spreads through different
method calls/HTTP requests. The AS would most likely use different
threads from the thread pool to process the call.
Cheers
--
Manik Surtani
manik(a)jboss.org
Lead, Infinispan
Lead, JBoss Cache
http://www.infinispan.org
http://www.jbosscache.org
_______________________________________________
infinispan-dev mailing list
infinispan-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/infinispan-dev