com.caucho.jca.ra
Class AbstractResourceAdapter

java.lang.Object
  extended by com.caucho.jca.ra.AbstractResourceAdapter
All Implemented Interfaces:
ResourceAdapter
Direct Known Subclasses:
RmiRegistry

public class AbstractResourceAdapter
extends java.lang.Object
implements ResourceAdapter

Convenience class for the ResourceAdapter.


Constructor Summary
AbstractResourceAdapter()
           
 
Method Summary
 void endpointActivation(MessageEndpointFactory endpointFactory, ActivationSpec spec)
          Called during activation of a message endpoint.
 void endpointDeactivation(MessageEndpointFactory endpointFactory, ActivationSpec spec)
          Called during deactivation of a message endpoint.
 XAResource[] getXAResources(ActivationSpec[] specs)
          Called during crash recovery.
 void start(BootstrapContext ctx)
          Called when the resource starts.
 void stop()
          Called when the resource adapter is stopped.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractResourceAdapter

public AbstractResourceAdapter()
Method Detail

start

public void start(BootstrapContext ctx)
           throws ResourceAdapterInternalException
Called when the resource starts.

Specified by:
start in interface ResourceAdapter
Throws:
ResourceAdapterInternalException

stop

public void stop()
Called when the resource adapter is stopped.

Specified by:
stop in interface ResourceAdapter

endpointActivation

public void endpointActivation(MessageEndpointFactory endpointFactory,
                               ActivationSpec spec)
                        throws NotSupportedException,
                               ResourceException
Called during activation of a message endpoint.

Specified by:
endpointActivation in interface ResourceAdapter
Throws:
NotSupportedException
ResourceException

endpointDeactivation

public void endpointDeactivation(MessageEndpointFactory endpointFactory,
                                 ActivationSpec spec)
Called during deactivation of a message endpoint.

Specified by:
endpointDeactivation in interface ResourceAdapter

getXAResources

public XAResource[] getXAResources(ActivationSpec[] specs)
                            throws ResourceException
Called during crash recovery.

Specified by:
getXAResources in interface ResourceAdapter
Throws:
ResourceException