[infinispan-dev] discussion about impact of using TransactionSynchronizationRegistry in AS7...

Mircea Markus mircea.markus at jboss.com
Thu Jun 2 05:53:14 EDT 2011


On 2 Jun 2011, at 10:31, Mircea Markus wrote:

> 
> On 1 Jun 2011, at 20:49, Scott Marlow wrote:
> 
>> I posted a message on the as7-dev ml 
>> (http://lists.jboss.org/pipermail/jboss-as7-dev/2011-May/002254.html), 
>> about switching to use the TransactionSynchronizationRegistry.
>> 
>> Does Infinispan currently register Transaction synchronization objects? 
> yes
>> Does Infinispan currently register synchronizations via 
>> TransactionSynchronizationRegistry (TSR)?
> no, we register synchronizations through transaction.registerSynchronization
>> 
>> I'm trying to get a sense for, what would happen if container managed 
>> (AS7) session beans were registered with the active JTA transaction via 
>> the TSR.
>> 
>> If AS7 switches to use the TSR, I think that Infinispan might need to 
>> ensure that it doesn't attempt to register with the TX too late.
> right. One way to go  is by making the registration code pluggable.
>> 
>> See http://pastie.org/1836698 for an example of what would happen if a 
>> TSR synchronization object is already present and someone tries to 
>> register a TX synchronization after tx.commit has been started.
> hmm, this stack trace shows an exception being thrown by the Synchrnoization.beforeCompletion object.
> Doesn't look like the TransactionManager throws the exception not allowing the sync to be registered. 
I was wrong, Jonathan pointed me to the place in the logs - thanks! 
>> 
>> 
>> _______________________________________________
>> infinispan-dev mailing list
>> infinispan-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/infinispan-dev
> 




More information about the infinispan-dev mailing list