public class LookupJiniTransactionManager extends AbstractJiniTransactionManager implements ServiceDetailsProvider
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.
AbstractJiniTransactionManager.JiniTransactionObject, AbstractJiniTransactionManager.UnexpectedTransactionException
beanName, SERVICE_TYPE
Constructor and Description |
---|
LookupJiniTransactionManager() |
Modifier and Type | Method and Description |
---|---|
protected TransactionManager |
doCreateTransactionManager()
Returns a Jini
TransactionManager that is lookup up using JiniServiceFactoryBean . |
ServiceDetails[] |
getServicesDetails()
Retruns one or more service details that the service exposes.
|
void |
setGroups(String[] groups)
Sets the groups that will be used to look up the Jini transaction manager.
|
void |
setLocators(String[] locators)
Sets specific locators to find the jini transaction manger.
|
void |
setLookupTimeout(Long lookupTimeout)
Sets the lookupTimeout for the transaction manager lookup operation.
|
void |
setTransactionManagerName(String transactionManagerName)
Sets the transaction manager name to perform the lookup by.
|
protected boolean |
suppportsCustomIsolationLevel() |
afterPropertiesSet, applyIsolationLevel, convertJiniException, destroy, doBegin, doCleanupAfterCompletion, doCommit, doGetTransaction, doJiniBegin, doResume, doRollback, doSetRollbackOnly, doSuspend, getBeanName, getTransactionalContext, getTransactionManager, isExistingTransaction, logMessage, setBeanName, setCommitTimeout, setLeaseRenewalConfig, setRollbackTimeout, setTransactionalContext, useSavepointForNestedTransaction
commit, determineTimeout, getDefaultTimeout, getTransaction, getTransactionSynchronization, invokeAfterCompletion, isFailEarlyOnGlobalRollbackOnly, isGlobalRollbackOnParticipationFailure, isNestedTransactionAllowed, isRollbackOnCommitFailure, isValidateExistingTransaction, newTransactionStatus, prepareForCommit, prepareSynchronization, prepareTransactionStatus, registerAfterCompletionWithExistingTransaction, resume, rollback, setDefaultTimeout, setFailEarlyOnGlobalRollbackOnly, setGlobalRollbackOnParticipationFailure, setNestedTransactionAllowed, setRollbackOnCommitFailure, setTransactionSynchronization, setTransactionSynchronizationName, setValidateExistingTransaction, shouldCommitOnGlobalRollbackOnly, suspend, triggerBeforeCommit, triggerBeforeCompletion
public void setTransactionManagerName(String transactionManagerName)
null
.public void setLookupTimeout(Long lookupTimeout)
public void setGroups(String[] groups)
public void setLocators(String[] locators)
protected TransactionManager doCreateTransactionManager() throws Exception
TransactionManager
that is lookup up using JiniServiceFactoryBean
. The lookup can use a specified setTransactionManagerName(String)
and a setLookupTimeout(Long)
.doCreateTransactionManager
in class AbstractJiniTransactionManager
Exception
public ServiceDetails[] getServicesDetails()
ServiceDetailsProvider
getServicesDetails
in interface ServiceDetailsProvider
protected boolean suppportsCustomIsolationLevel()
suppportsCustomIsolationLevel
in class AbstractJiniTransactionManager
Copyright © GigaSpaces.