|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.mx.util.JBossNotificationBroadcasterSupport
org.jboss.system.ServiceMBeanSupport
org.jboss.resource.connectionmanager.ConnectionFactoryBindingService
org.jboss.resource.adapter.jdbc.remote.WrapperDataSourceService
public class WrapperDataSourceService
An mbean service that pvovides the detached invoker ops for the javax.sql.DataSource and related java.sql.* interfaces. TODO this does not belong in the resource adapter
Field Summary |
---|
Fields inherited from class org.jboss.resource.connectionmanager.ConnectionFactoryBindingService |
---|
bindName, cf, cm, jndiName, useJavaContext |
Fields inherited from class org.jboss.system.ServiceMBeanSupport |
---|
server, SERVICE_CONTROLLER_SIG, serviceName |
Fields inherited from interface org.jboss.resource.adapter.jdbc.remote.WrapperDataSourceServiceMBean |
---|
OBJECT_NAME |
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 |
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 TODO this should be external configuration |
protected void |
destroyProxy()
Destroy the proxy |
javax.management.ObjectName |
getJMXInvokerName()
Get the transport |
Object |
invoke(org.jboss.invocation.Invocation invocation)
Expose the DataSource via JMX to invokers. |
void |
setJMXInvokerName(javax.management.ObjectName jmxInvokerName)
Set the transport |
protected void |
startService()
|
protected void |
stopService()
|
Methods inherited from class org.jboss.resource.connectionmanager.ConnectionFactoryBindingService |
---|
createConnectionFactory, determineBindName, getBindName, getConnectionManager, getJndiName, isUseJavaContext, setConnectionManager, setJndiName, setUseJavaContext, unbindConnectionFactory |
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, postDeregister, postRegister, preDeregister, preRegister, start, stop |
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport |
---|
addNotificationListener, getNotificationInfo, handleNotification, nextNotificationSequenceNumber, 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.resource.connectionmanager.ConnectionFactoryBindingServiceMBean |
---|
getBindName, getConnectionManager, getJndiName, isUseJavaContext, setConnectionManager, setJndiName, setUseJavaContext |
Methods inherited from interface org.jboss.system.ServiceMBean |
---|
getName, getState, getStateString, jbossInternalLifecycle |
Methods inherited from interface org.jboss.system.Service |
---|
create, destroy, start, stop |
Constructor Detail |
---|
public WrapperDataSourceService()
Method Detail |
---|
protected void startService() throws Exception
startService
in class ConnectionFactoryBindingService
Exception
protected void stopService() throws Exception
stopService
in class ConnectionFactoryBindingService
Exception
protected void bindConnectionFactory() throws Exception
ConnectionFactoryBindingService
bindConnectionFactory
in class ConnectionFactoryBindingService
Exception
public javax.management.ObjectName getJMXInvokerName()
WrapperDataSourceServiceMBean
getJMXInvokerName
in interface WrapperDataSourceServiceMBean
public void setJMXInvokerName(javax.management.ObjectName jmxInvokerName)
WrapperDataSourceServiceMBean
setJMXInvokerName
in interface WrapperDataSourceServiceMBean
jmxInvokerName
- the invoker namepublic Object invoke(org.jboss.invocation.Invocation invocation) throws Exception
WrapperDataSourceServiceMBean
invoke
in interface WrapperDataSourceServiceMBean
invocation
- A pointer to the invocation object
Exception
- Failed to invoke method.protected void createProxy() throws Exception
Exception
protected void destroyProxy() throws Exception
Exception
protected void calculateMethodHases() throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |