[
https://issues.jboss.org/browse/ISPN-1168?page=com.atlassian.jira.plugin....
]
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