org.jboss.tm.usertx.server
Class ClientUserTransactionService
java.lang.Object
org.jboss.mx.util.JBossNotificationBroadcasterSupport (src)
org.jboss.system.ServiceMBeanSupport (src)
org.jboss.tm.usertx.server.ClientUserTransactionService
- All Implemented Interfaces:
- ClientUserTransactionServiceMBean (src) , MBeanRegistration (src) , NotificationBroadcaster (src) , NotificationEmitter (src) , Service (src) , ServiceMBean (src)
- public class ClientUserTransactionService
- extends ServiceMBeanSupport (src)
- implements ClientUserTransactionServiceMBean (src)
This is a JMX service handling the serverside of UserTransaction
usage for standalone clients.
Field Summary |
static java.lang.String |
JNDI_NAME
The location where the javax.transaction.UserTransaction is bound on the server |
Fields inherited from interface org.jboss.system.ServiceMBean (src) |
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED |
Method Summary |
java.lang.Object |
invoke(Invocation (src) invocation)
Expose UserTransactionSession and UserTransactionSessionFactory
interfaces via JMX to invokers. |
void |
setTxProxyName(ObjectName (src) proxyName)
Set the name of the proxy factory service used for the
UserTransactionSession |
protected void |
startService()
Sub-classes should override this method to provide
custum 'start' logic. |
protected void |
stopService()
Sub-classes should override this method to provide
custum 'stop' logic. |
Methods inherited from class org.jboss.system.ServiceMBeanSupport (src) |
create, createService, destroy, destroyService, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, stop |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JNDI_NAME
public static java.lang.String JNDI_NAME
- The location where the javax.transaction.UserTransaction is bound on the server
ClientUserTransactionService
public ClientUserTransactionService()
setTxProxyName
public void setTxProxyName(ObjectName (src) proxyName)
- Set the name of the proxy factory service used for the
UserTransactionSession
- Specified by:
setTxProxyName
in interface ClientUserTransactionServiceMBean (src)
- Parameters:
proxyName
-
invoke
public java.lang.Object invoke(Invocation (src) invocation)
throws java.lang.Exception
- Expose UserTransactionSession and UserTransactionSessionFactory
interfaces via JMX to invokers.
- Specified by:
invoke
in interface ClientUserTransactionServiceMBean (src)
- Parameters:
invocation
- A pointer to the invocation object
- Returns:
- Return value of method invocation.
- Throws:
java.lang.Exception
- Failed to invoke method.
startService
protected void startService()
throws java.lang.Exception
- Description copied from class:
ServiceMBeanSupport (src)
- Sub-classes should override this method to provide
custum 'start' logic.
This method is empty, and is provided for convenience
when concrete service classes do not need to perform
anything specific for this state change.
- Overrides:
startService
in class ServiceMBeanSupport (src)
- Throws:
java.lang.Exception
stopService
protected void stopService()
- Description copied from class:
ServiceMBeanSupport (src)
- Sub-classes should override this method to provide
custum 'stop' logic.
This method is empty, and is provided for convenience
when concrete service classes do not need to perform
anything specific for this state change.
- Overrides:
stopService
in class ServiceMBeanSupport (src)