[infinispan-issues] [JBoss JIRA] Created: (ISPN-888) Support both Synchronization and XAResource for interacting with the TransactionManager

Mircea Markus (JIRA) jira-events at lists.jboss.org
Fri Jan 21 12:42:49 EST 2011


Support both Synchronization and XAResource for interacting with the TransactionManager
---------------------------------------------------------------------------------------

                 Key: ISPN-888
                 URL: https://issues.jboss.org/browse/ISPN-888
             Project: Infinispan
          Issue Type: Feature Request
          Components: Transactions
    Affects Versions: 4.2.0.Final
            Reporter: Mircea Markus
            Assignee: Mircea Markus
             Fix For: 5.0.0.Final


This might be a configuration option on <transaction registerSynchronization="true" .../>. This would be false by default.

Syncs have the advantage that TMs can optimise 2PC with a 1PC where only 1 XAResource is present.  
Useful when used as a simple cache in front of a DB.  E.g., as a Hibernate second level cache: if the cache would register itself with the TM as a XAResource than at commit time, the TM would see two XAResources (cache and db) and would not be able to make this optimization. This means that it would write to disk tx logs - time consuming. 


-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the infinispan-issues mailing list