org.jboss.tm.usertx.server
Class ClientUserTransactionService
java.lang.Object
org.jboss.mx.util.JBossNotificationBroadcasterSupport
org.jboss.system.ServiceMBeanSupport
org.jboss.tm.usertx.server.ClientUserTransactionService
- All Implemented Interfaces:
- MBeanRegistration, NotificationBroadcaster, NotificationEmitter, org.jboss.kernel.spi.dependency.KernelControllerContextAware, Service, ServiceMBean, ClientUserTransactionServiceMBean
public class ClientUserTransactionService
- extends ServiceMBeanSupport
- implements ClientUserTransactionServiceMBean
This is a JMX service handling the serverside of UserTransaction
usage for standalone clients.
- Version:
- $Revision: 81030 $
- Author:
- Ole Husgaard, Scott.Stark@jboss.org, Galder Zamarreno
Field Summary |
static String |
JNDI_NAME
The location where the javax.transaction.UserTransaction is bound on the server |
Fields inherited from interface org.jboss.system.ServiceMBean |
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED |
Methods inherited from class org.jboss.system.ServiceMBeanSupport |
create, createService, destroy, destroyService, getDeploymentInfo, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, pojoChange, pojoCreate, pojoDestroy, pojoStart, pojoStop, postDeregister, postRegister, preDeregister, preRegister, setKernelControllerContext, start, stop, unsetKernelControllerContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JNDI_NAME
public static String JNDI_NAME
- The location where the javax.transaction.UserTransaction is bound on the server
ClientUserTransactionService
public ClientUserTransactionService()
setTxProxyName
public void setTxProxyName(ObjectName proxyName)
- Set the name of the proxy factory service used for the
UserTransactionSession
- Specified by:
setTxProxyName
in interface ClientUserTransactionServiceMBean
- Parameters:
proxyName
-
invoke
public Object invoke(Invocation invocation)
throws Exception
- Expose UserTransactionSession and UserTransactionSessionFactory
interfaces via JMX to invokers.
- Specified by:
invoke
in interface ClientUserTransactionServiceMBean
- Parameters:
invocation
- A pointer to the invocation object
- Returns:
- Return value of method invocation.
- Throws:
Exception
- Failed to invoke method.
startService
protected void startService()
throws Exception
- Overrides:
startService
in class ServiceMBeanSupport
- Throws:
Exception
stopService
protected void stopService()
- Overrides:
stopService
in class ServiceMBeanSupport
Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.