当前页面:
在线文档首页 >
JBoss 4.0.1 sp1 connector API Documentation 英文版文档
WrapperDataSourceService (JBoss Connector API) - JBoss 4.0.1 sp1 connector API Documentation 英文版文档
org.jboss.resource.adapter.jdbc.remote
Class WrapperDataSourceService
java.lang.Object
org.jboss.mx.util.JBossNotificationBroadcasterSupport
org.jboss.system.ServiceMBeanSupport
org.jboss.resource.connectionmanager.ConnectionFactoryBindingService
org.jboss.resource.adapter.jdbc.remote.WrapperDataSourceService
- All Implemented Interfaces:
- ConnectionFactoryBindingServiceMBean, javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, org.jboss.system.Service, org.jboss.system.ServiceMBean, WrapperDataSourceServiceMBean
- public class WrapperDataSourceService
- extends ConnectionFactoryBindingService
- implements WrapperDataSourceServiceMBean
An mbean service that pvovides the detached invoker ops for the
javax.sql.DataSource and related java.sql.* interfaces.
- Version:
- $Revision: 1.7 $
- Author:
- Scott.Stark@jboss.org, Tom.Elrod@jboss.org, adrian@jboss.com
Fields inherited from class org.jboss.system.ServiceMBeanSupport |
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 |
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 |
WrapperDataSourceService
public WrapperDataSourceService()
startService
protected void startService()
throws Exception
- Overrides:
startService
in class ConnectionFactoryBindingService
- Throws:
Exception
stopService
protected void stopService()
throws Exception
- Overrides:
stopService
in class ConnectionFactoryBindingService
- Throws:
Exception
bindConnectionFactory
protected void bindConnectionFactory()
throws Exception
- Description copied from class:
ConnectionFactoryBindingService
- Bind the connection factory into jndi
- Overrides:
bindConnectionFactory
in class ConnectionFactoryBindingService
- Throws:
Exception
getJMXInvokerName
public javax.management.ObjectName getJMXInvokerName()
- Get the transport
- Specified by:
getJMXInvokerName
in interface WrapperDataSourceServiceMBean
- Returns:
- the transport
setJMXInvokerName
public void setJMXInvokerName(javax.management.ObjectName jmxInvokerName)
- Set the transport
- Specified by:
setJMXInvokerName
in interface WrapperDataSourceServiceMBean
invoke
public Object invoke(org.jboss.invocation.Invocation invocation)
throws Exception
- Expose the DataSource via JMX to invokers.
- Specified by:
invoke
in interface WrapperDataSourceServiceMBean
- Parameters:
invocation
- A pointer to the invocation object
- Returns:
- Return value of method invocation.
- Throws:
Exception
- Failed to invoke method.
createProxy
protected void createProxy()
throws Exception
- Create the proxy
- Throws:
Exception
destroyProxy
protected void destroyProxy()
throws Exception
- Destroy the proxy
- Throws:
Exception
calculateMethodHases
protected void calculateMethodHases()
throws Exception
- Calculate the method hashes
- Throws:
Exception
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.