org.ow2.jasmine.interfaces.jmx
Class JMXResourceAdapter

java.lang.Object
  extended by org.ow2.jasmine.interfaces.jmx.JMXResourceAdapter
All Implemented Interfaces:
javax.resource.spi.ResourceAdapter

public class JMXResourceAdapter
extends Object
implements javax.resource.spi.ResourceAdapter

This class implements a connector to provide support of MBean registration.

Author:
Laurent RUAUD

Constructor Summary
JMXResourceAdapter()
          Creates a connector for JMX external interfaces.
 
Method Summary
 void endpointActivation(javax.resource.spi.endpoint.MessageEndpointFactory arg0, javax.resource.spi.ActivationSpec arg1)
          Not used
 void endpointDeactivation(javax.resource.spi.endpoint.MessageEndpointFactory arg0, javax.resource.spi.ActivationSpec arg1)
          Not used
 XAResource[] getXAResources(javax.resource.spi.ActivationSpec[] arg0)
          Not used
 void start(javax.resource.spi.BootstrapContext arg0)
          This is called when the resource adapter instance is bootstrapped.
 void stop()
          This is called when the resource adapter instance is undeployed or during application server shutdown.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JMXResourceAdapter

public JMXResourceAdapter()
Creates a connector for JMX external interfaces.

Method Detail

start

public void start(javax.resource.spi.BootstrapContext arg0)
           throws javax.resource.spi.ResourceAdapterInternalException
This is called when the resource adapter instance is bootstrapped. It finds the MBean server and registers MBeans of external interfaces.

Specified by:
start in interface javax.resource.spi.ResourceAdapter
Throws:
javax.resource.spi.ResourceAdapterInternalException

stop

public void stop()
This is called when the resource adapter instance is undeployed or during application server shutdown. It makes the MBean server unregister all registered MBeans.

Specified by:
stop in interface javax.resource.spi.ResourceAdapter

endpointActivation

public void endpointActivation(javax.resource.spi.endpoint.MessageEndpointFactory arg0,
                               javax.resource.spi.ActivationSpec arg1)
                        throws javax.resource.ResourceException
Not used

Specified by:
endpointActivation in interface javax.resource.spi.ResourceAdapter
Parameters:
arg0 - Not used
arg1 - Not used
Throws:
javax.resource.ResourceException

endpointDeactivation

public void endpointDeactivation(javax.resource.spi.endpoint.MessageEndpointFactory arg0,
                                 javax.resource.spi.ActivationSpec arg1)
Not used

Specified by:
endpointDeactivation in interface javax.resource.spi.ResourceAdapter
Parameters:
arg0 - Not used
arg1 - Not used

getXAResources

public XAResource[] getXAResources(javax.resource.spi.ActivationSpec[] arg0)
                            throws javax.resource.ResourceException
Not used

Specified by:
getXAResources in interface javax.resource.spi.ResourceAdapter
Parameters:
arg0 - Not used
Throws:
javax.resource.ResourceException


Copyright © 2013 OW2 Consortium. All Rights Reserved.