jrun.transaction
Class TXDomainService
jrunx.kernel.ServiceAdapter
|
+--jrun.transaction.TXDomainService
- All Implemented Interfaces:
- javax.naming.Referenceable, java.io.Serializable, Service, ServiceMBean, TransactionService, TXDomainServiceMBean
- public class TXDomainService
- extends ServiceAdapter
- implements TXDomainServiceMBean, TransactionService
Makes a TransactionDomain, which holds a TransactionManager and all
its associated resources and transactions.
- Author:
- PS Neville
- See Also:
- Serialized Form
| Fields inherited from class jrunx.kernel.ServiceAdapter |
DEFAULT_DEACTIVATED, DEFAULT_DOMAIN, DOMAIN_NAME_SEPARATOR, DOMAIN_NAME_SUFFIX, domainName, jndiBindable, LOGGER_CACHE_TIME, SCHEDULER_SERVICE, SECURITY_MANAGER, server, status, TRANSACTION_MANAGER |
| Methods inherited from class jrunx.kernel.ServiceAdapter |
bind, findObjectInstance, findObjectInstance, findObjectInstance, getBindToJNDI, getDeactivated, getDomainName, getDomainSearchPath, getJRunService, getLogger, getName, getParentService, getReference, getResourceManager, getServerName, getServerProperties, getStatus, invokeMethod, isInPartition, isPartition, lookup, postDeregister, postRegister, preDeregister, preRegister, requestServer, scheduleRunnable, setBindToJNDI, setDeactivated, setDomainName, setName, setParentService, toString, unbind, unscheduleRunnable, updateStatus |
| Methods inherited from interface jrunx.kernel.ServiceMBean |
bind, getBindToJNDI, getDeactivated, getDomainName, getJRunService, getLogger, getName, getParentService, getServerName, requestServer, setBindToJNDI, setDeactivated, setDomainName, setName, setParentService, unbind |
TXDomainService
public TXDomainService()
init
public void init()
- Description copied from class:
ServiceAdapter
- Not every service needs to init, implement it out of convenience.
- Specified by:
init in interface Service- Overrides:
init in class ServiceAdapter
start
public void start()
- Description copied from class:
ServiceAdapter
- Every service other than mere data collections should start
- Specified by:
start in interface Service- Overrides:
start in class ServiceAdapter
stop
public void stop()
throws java.lang.Exception
- Description copied from class:
ServiceAdapter
- Every service other than mere data collections should stop
- Specified by:
stop in interface Service- Overrides:
stop in class ServiceAdapter
destroy
public void destroy()
throws java.lang.Exception
- Description copied from class:
ServiceAdapter
- Every service is eventually destroyed. Convenience implementation.
- Specified by:
destroy in interface Service- Overrides:
destroy in class ServiceAdapter
getTXDomainName
public java.lang.String getTXDomainName()
- ATTRIBUTES
- Specified by:
getTXDomainName in interface TXDomainServiceMBean
setMaximum
public void setMaximum(int max)
- Specified by:
setMaximum in interface TXDomainServiceMBean
getMaximum
public int getMaximum()
- Specified by:
getMaximum in interface TXDomainServiceMBean
setTimeout
public void setTimeout(int seconds)
- Specified by:
setTimeout in interface TXDomainServiceMBean
getTimeout
public int getTimeout()
- Specified by:
getTimeout in interface TXDomainServiceMBean
setWaitTime
public void setWaitTime(int seconds)
- Specified by:
setWaitTime in interface TXDomainServiceMBean
getWaitTime
public int getWaitTime()
- Specified by:
getWaitTime in interface TXDomainServiceMBean
getTransactionDomain
public TransactionDomain getTransactionDomain()
- TRANSACTION SERVICE METHODS
getTransactionManager
public javax.transaction.TransactionManager getTransactionManager()
- Specified by:
getTransactionManager in interface TransactionService
getUserTransaction
public javax.transaction.UserTransaction getUserTransaction()
- Only the default domain has the globally-bound UserTransaction.
- Specified by:
getUserTransaction in interface TransactionService
getClusterEnabled
public boolean getClusterEnabled()
- Specified by:
getClusterEnabled in interface TXDomainServiceMBean
setClusterEnabled
public void setClusterEnabled(boolean clusterEnabled)
- Specified by:
setClusterEnabled in interface TXDomainServiceMBean
Copyright � 2002 Macromedia Corporation. All Rights Reserved.