org.ow2.jasmine.adapter.jmx.pool.inbound
Class JMXConnectionResourceAdapterImpl

java.lang.Object
  extended by org.ow2.jasmine.adapter.jmx.pool.inbound.JMXConnectionResourceAdapterImpl
All Implemented Interfaces:
java.io.Serializable, javax.resource.spi.ResourceAdapter

public class JMXConnectionResourceAdapterImpl
extends java.lang.Object
implements javax.resource.spi.ResourceAdapter, java.io.Serializable

Main class of the RA.

Author:
Guillaume Renault
See Also:
Serialized Form

Constructor Summary
JMXConnectionResourceAdapterImpl()
           
 
Method Summary
 void endpointActivation(javax.resource.spi.endpoint.MessageEndpointFactory endpointFactory, javax.resource.spi.ActivationSpec spec)
          Not implemented.
 void endpointDeactivation(javax.resource.spi.endpoint.MessageEndpointFactory endpointFactory, javax.resource.spi.ActivationSpec spec)
          Not implemented.
 javax.transaction.xa.XAResource[] getXAResources(javax.resource.spi.ActivationSpec[] spec)
          Not implemented.
 void start(javax.resource.spi.BootstrapContext bootstrapCtx)
          Start method.
 void stop()
          Stop method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JMXConnectionResourceAdapterImpl

public JMXConnectionResourceAdapterImpl()
Method Detail

start

public final void start(javax.resource.spi.BootstrapContext bootstrapCtx)
                 throws javax.resource.spi.ResourceAdapterInternalException
Start method.

Specified by:
start in interface javax.resource.spi.ResourceAdapter
Parameters:
bootstrapCtx - a bootstrap context containing references to useful facilities that could be used by a resource adapter instance.
Throws:
javax.resource.spi.ResourceAdapterInternalException - indicates bootstrap failure. The resource adapter instance is unusable and must be discarded.
See Also:
ResourceAdapter.start(BootstrapContext)

stop

public final void stop()
Stop method.

Specified by:
stop in interface javax.resource.spi.ResourceAdapter
See Also:
ResourceAdapter.stop()

endpointActivation

public final void endpointActivation(javax.resource.spi.endpoint.MessageEndpointFactory endpointFactory,
                                     javax.resource.spi.ActivationSpec spec)
                              throws javax.resource.ResourceException
Not implemented.

Specified by:
endpointActivation in interface javax.resource.spi.ResourceAdapter
Parameters:
endpointFactory - a message endpoint factory instance.
spec - an activation spec JavaBean instance.
Throws:
javax.resource.ResourceException - generic exception if operation fails due to an error condition.
See Also:
ResourceAdapter.endpointActivation(MessageEndpointFactory, ActivationSpec)

endpointDeactivation

public final void endpointDeactivation(javax.resource.spi.endpoint.MessageEndpointFactory endpointFactory,
                                       javax.resource.spi.ActivationSpec spec)
Not implemented.

Specified by:
endpointDeactivation in interface javax.resource.spi.ResourceAdapter
Parameters:
endpointFactory - a message endpoint factory instance.
spec - an activation spec JavaBean instance.
See Also:
ResourceAdapter.endpointDeactivation(MessageEndpointFactory, ActivationSpec)

getXAResources

public final javax.transaction.xa.XAResource[] getXAResources(javax.resource.spi.ActivationSpec[] spec)
                                                       throws javax.resource.ResourceException
Not implemented.

Specified by:
getXAResources in interface javax.resource.spi.ResourceAdapter
Parameters:
spec - an array of ActivationSpec JavaBeans each of which corresponds to an deployed endpoint application that was active prior to the system crash.
Returns:
null as this function is not implemented, otherwise an array of XAResource objects each of which represents a unique resource manager.
Throws:
javax.resource.ResourceException - generic exception if operation fails due to an error condition.
See Also:
ResourceAdapter.getXAResources(ActivationSpec[])


Copyright © 2008 OW2 Consortium. All Rights Reserved.