javax.resource.spi
Interface ResourceAdapter

All Known Implementing Classes:
AbstractResourceAdapter, JmsResourceAdapter, ResourceAdapterImpl, RmiRegistry

public interface ResourceAdapter

The main interface for a resource.


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 adapter is started.
 void stop()
          Called when the resource adapter is stopped.
 

Method Detail

start

void start(BootstrapContext ctx)
           throws ResourceAdapterInternalException
Called when the resource adapter is started.

Throws:
ResourceAdapterInternalException

stop

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


endpointActivation

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

Throws:
NotSupportedException
ResourceException

endpointDeactivation

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


getXAResources

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

Throws:
ResourceException