当前页面:
在线文档首页 >
JBoss 4.0.1 sp1 server API Documentation 英文版文档
ClientUserTransactionService (JBoss Server API) - JBoss 4.0.1 sp1 server API Documentation 英文版文档
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:
- ClientUserTransactionServiceMBean, javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, org.jboss.system.Service, org.jboss.system.ServiceMBean
- public class ClientUserTransactionService
- extends org.jboss.system.ServiceMBeanSupport
- implements ClientUserTransactionServiceMBean
This is a JMX service handling the serverside of UserTransaction
usage for standalone clients.
- Version:
- $Revision: 1.11 $
- Author:
- Ole Husgaard, Scott.Stark@jboss.org
Field Summary |
static String |
JNDI_NAME
The location where the javax.transaction.UserTransaction is bound on the server |
Fields inherited from class org.jboss.system.ServiceMBeanSupport |
log, server, SERVICE_CONTROLLER_SIG, serviceName |
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 |
Method Summary |
Object |
invoke(Invocation invocation)
Expose UserTransactionSession and UserTransactionSessionFactory
interfaces via JMX to invokers. |
void |
setTxProxyName(javax.management.ObjectName proxyName)
Set the name of the proxy factory service used for the
UserTransactionSession |
protected void |
startService()
|
protected void |
stopService()
|
Methods inherited from class org.jboss.system.ServiceMBeanSupport |
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 org.jboss.mx.util.JBossNotificationBroadcasterSupport |
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jboss.system.ServiceMBean |
getName, getState, getStateString, jbossInternalLifecycle |
Methods inherited from interface org.jboss.system.Service |
create, destroy, start, stop |
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(javax.management.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
- Throws:
Exception
stopService
protected void stopService()
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.