org.jboss.resource.adapter.jdbc.remote
Class WrapperDataSourceService

java.lang.Object
  extended byorg.jboss.mx.util.JBossNotificationBroadcasterSupport (src) 
      extended byorg.jboss.system.ServiceMBeanSupport (src) 
          extended byorg.jboss.resource.connectionmanager.ConnectionFactoryBindingService (src) 
              extended byorg.jboss.resource.adapter.jdbc.remote.WrapperDataSourceService
All Implemented Interfaces:
MBeanRegistration (src) , NotificationBroadcaster (src) , NotificationEmitter (src) , Service (src) , ServiceMBean (src)

public class WrapperDataSourceService
extends ConnectionFactoryBindingService (src)

An mbean service that pvovides the detached invoker ops for the javax.sql.DataSource and related java.sql.* interfaces.


Field Summary
 
Fields inherited from class org.jboss.resource.connectionmanager.ConnectionFactoryBindingService (src)
bindName, cf, cm, jndiName, useJavaContext
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport (src)
server, SERVICE_CONTROLLER_SIG, serviceName
 
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
 
Constructor Summary
WrapperDataSourceService()
           
 
Method Summary
protected  void bindConnectionFactory()
          Bind the connection factory into jndi
protected  void calculateMethodHases()
          Calculate the method hashes
protected  void createProxy()
          Create the proxy
protected  void destroyProxy()
          Destroy the proxy
 ObjectName (src) getJMXInvokerName()
          Get the transport
 java.lang.Object invoke(Invocation (src)  invocation)
          Expose the DataSource via JMX to invokers.
 void setJMXInvokerName(ObjectName (src)  jmxInvokerName)
          Set the transport
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.resource.connectionmanager.ConnectionFactoryBindingService (src)
createConnectionFactory, determineBindName, getBindName, getConnectionManager, getJndiName, isUseJavaContext, setConnectionManager, setJndiName, setUseJavaContext, unbindConnectionFactory
 
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 org.jboss.mx.util.JBossNotificationBroadcasterSupport (src)
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WrapperDataSourceService

public WrapperDataSourceService()
Method Detail

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 ConnectionFactoryBindingService (src)
Throws:
java.lang.Exception

stopService

protected void stopService()
                    throws java.lang.Exception
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 ConnectionFactoryBindingService (src)
Throws:
java.lang.Exception

bindConnectionFactory

protected void bindConnectionFactory()
                              throws java.lang.Exception
Description copied from class: ConnectionFactoryBindingService (src)
Bind the connection factory into jndi

Overrides:
bindConnectionFactory in class ConnectionFactoryBindingService (src)
Throws:
java.lang.Exception

getJMXInvokerName

public ObjectName (src)  getJMXInvokerName()
Get the transport

Returns:
the transport

setJMXInvokerName

public void setJMXInvokerName(ObjectName (src)  jmxInvokerName)
Set the transport


invoke

public java.lang.Object invoke(Invocation (src)  invocation)
                        throws java.lang.Exception
Expose the DataSource via JMX to invokers.

Parameters:
invocation - A pointer to the invocation object
Returns:
Return value of method invocation.
Throws:
java.lang.Exception - Failed to invoke method.

createProxy

protected void createProxy()
                    throws java.lang.Exception
Create the proxy

Throws:
java.lang.Exception

destroyProxy

protected void destroyProxy()
                     throws java.lang.Exception
Destroy the proxy

Throws:
java.lang.Exception

calculateMethodHases

protected void calculateMethodHases()
                             throws java.lang.Exception
Calculate the method hashes

Throws:
java.lang.Exception