[infinispan-issues] [JBoss JIRA] Commented: (ISPN-1168) Support for interposed synchronization

Mircea Markus (JIRA) jira-events at lists.jboss.org
Wed Jun 8 13:38:59 EDT 2011


    [ https://issues.jboss.org/browse/ISPN-1168?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12607243#comment-12607243 ] 

Mircea Markus commented on ISPN-1168:
-------------------------------------

Suggested solution:
Expose the code that performs the registration:
{code:xml}
   <namedCache name="noXa">
      <transaction useSynchronization="true" synchronisationRegistrationPolicy="fully.qualified.name.RegistrationPolicy"/>
   </namedCache>
{code}

the synchronizationRegistrationPolicy must implement:
{code:java}
public interface SynchronisationRegistrationPolicy {
   void registerSynchronisation(Synchronization s, Transaction t);
}
{code}
with default implementation:
{code:java}
public class SynchronisationRegistrationPolicyImpl implements SynchronisationRegistrationPolicy {
   @Override
   public void registerSynchronisation(Synchronization s, Transaction t) {
      try {
         t.registerSynchronization(s);
      } catch (Exception e) {
         throw new CacheException("Enexpected!", e);
      }
   }
}
{code}

The synchronizationRegistrationPolicy is instantiated from: TransactionTable.enlist method.

> Support for interposed synchronization
> --------------------------------------
>
>                 Key: ISPN-1168
>                 URL: https://issues.jboss.org/browse/ISPN-1168
>             Project: Infinispan
>          Issue Type: Task
>    Affects Versions: 5.0.0.CR4
>            Reporter: Scott Marlow
>            Assignee: Manik Surtani
>             Fix For: 5.0.0.CR5
>
>
> Support for interposed synchronization should be configurable to avoid the following exception:
> http://pastie.org/2035067

--
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