[infinispan-dev] Infinispan tx, config and multithreading

Mircea Markus mircea.markus at jboss.com
Wed Aug 26 06:57:14 EDT 2009


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 at jboss.org
> Lead, Infinispan
> Lead, JBoss Cache
> http://www.infinispan.org
> http://www.jbosscache.org
>
>
>
>
> _______________________________________________
> infinispan-dev mailing list
> infinispan-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/infinispan-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/infinispan-dev/attachments/20090826/9388f0dd/attachment-0002.html 


More information about the infinispan-dev mailing list