org.openspaces.core.transaction.manager
Class LookupJiniTransactionManager
java.lang.Object
org.springframework.transaction.support.AbstractPlatformTransactionManager
org.openspaces.core.transaction.manager.AbstractJiniTransactionManager
org.openspaces.core.transaction.manager.LookupJiniTransactionManager
- All Implemented Interfaces:
- Serializable, JiniPlatformTransactionManager, ServiceDetailsProvider, BeanNameAware, DisposableBean, InitializingBean, PlatformTransactionManager
public class LookupJiniTransactionManager
- extends AbstractJiniTransactionManager
- implements ServiceDetailsProvider
Springs transaction manager (PlatformTransactionManager
using Jini in order to lookup the transaction manager based on a name (can have null
value).
Uses JiniServiceFactoryBean
in order to perform the lookup based on the specified
setTransactionManagerName(String)
and setLookupTimeout(Long)
. This usually
works with Jini Mahalo transaction manager.
- Author:
- kimchy
- See Also:
- Serialized Form
Methods inherited from class org.openspaces.core.transaction.manager.AbstractJiniTransactionManager |
afterPropertiesSet, convertJiniException, destroy, doBegin, doCleanupAfterCompletion, doCommit, doGetTransaction, doJiniBegin, doResume, doRollback, doSetRollbackOnly, doSuspend, getBeanName, getTransactionalContext, getTransactionManager, isExistingTransaction, logMessage, setBeanName, setCommitTimeout, setLeaseRenewalConfig, setRollbackTimeout, setTransactionalContext, useSavepointForNestedTransaction |
Methods inherited from class org.springframework.transaction.support.AbstractPlatformTransactionManager |
commit, determineTimeout, getDefaultTimeout, getTransaction, getTransactionSynchronization, invokeAfterCompletion, isFailEarlyOnGlobalRollbackOnly, isGlobalRollbackOnParticipationFailure, isNestedTransactionAllowed, isRollbackOnCommitFailure, isValidateExistingTransaction, newTransactionStatus, prepareForCommit, registerAfterCompletionWithExistingTransaction, resume, rollback, setDefaultTimeout, setFailEarlyOnGlobalRollbackOnly, setGlobalRollbackOnParticipationFailure, setNestedTransactionAllowed, setRollbackOnCommitFailure, setTransactionSynchronization, setTransactionSynchronizationName, setValidateExistingTransaction, shouldCommitOnGlobalRollbackOnly, suspend, triggerBeforeCommit, triggerBeforeCompletion |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LookupJiniTransactionManager
public LookupJiniTransactionManager()
setTransactionManagerName
public void setTransactionManagerName(String transactionManagerName)
- Sets the transaction manager name to perform the lookup by. Note, this is
not the transaction manager bean name, but an optional mahalo transaction
manager name under which it was started. Usually this is set to
null
.
setLookupTimeout
public void setLookupTimeout(Long lookupTimeout)
- Sets the lookupTimeout for the transaction manager lookup operation.
setGroups
public void setGroups(String[] groups)
- Sets the groups that will be used to look up the Jini transaction manager. Default to ALL groups.
setLocators
public void setLocators(String[] locators)
- Sets specific locators to find the jini transaction manger.
doCreateTransactionManager
protected net.jini.core.transaction.server.TransactionManager doCreateTransactionManager()
throws Exception
- Returns a Jini
TransactionManager
that is lookup up using
JiniServiceFactoryBean
. The lookup can use a specified
setTransactionManagerName(String)
and a setLookupTimeout(Long)
.
- Specified by:
doCreateTransactionManager
in class AbstractJiniTransactionManager
- Throws:
Exception
getServicesDetails
public ServiceDetails[] getServicesDetails()
- Description copied from interface:
ServiceDetailsProvider
- Retruns one or more service details that the service exposes.
- Specified by:
getServicesDetails
in interface ServiceDetailsProvider
applyIsolationLevel
protected void applyIsolationLevel(AbstractJiniTransactionManager.JiniTransactionObject txObject,
int isolationLevel)
throws InvalidIsolationLevelException
- Overrides:
applyIsolationLevel
in class AbstractJiniTransactionManager
- Throws:
InvalidIsolationLevelException
Copyright © GigaSpaces.