<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Aug 14, 2009, at 11:33 AM, Manik Surtani wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div><br>On 13 Aug 2009, at 19:11, Emmanuel Bernard wrote:<br><br><blockquote type="cite"><br></blockquote><blockquote type="cite">Infini guys, do you support transactional operation spanning several<br></blockquote><blockquote type="cite">concurrent threads?<br></blockquote><br>The *same* tx on different threads? &nbsp;That's disallowed by the JTA spec.<br></div></blockquote>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.&nbsp;</div><div>JTA specs says that "<span class="Apple-style-span" style="font-family: Times; font-size: 12px; ">Note that sometransaction manager implementations allow a suspended transaction to&nbsp;</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Times; ">be resumed by a different thread. This feature is not required by JTA."&nbsp;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Times; ">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.</div><div><blockquote type="cite"><div><br>Cheers<br>--<br>Manik Surtani<br><a href="mailto:manik@jboss.org">manik@jboss.org</a><br>Lead, Infinispan<br>Lead, JBoss Cache<br>http://www.infinispan.org<br>http://www.jbosscache.org<br><br><br><br><br>_______________________________________________<br>infinispan-dev mailing list<br>infinispan-dev@lists.jboss.org<br>https://lists.jboss.org/mailman/listinfo/infinispan-dev<br></div></blockquote></div><br></body></html>