public class AbstractResourceAdapter extends java.lang.Object implements ResourceAdapter
Constructor and Description |
---|
AbstractResourceAdapter() |
Modifier and Type | Method and Description |
---|---|
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.
|
public void start(BootstrapContext ctx) throws ResourceAdapterInternalException
start
in interface ResourceAdapter
ResourceAdapterInternalException
public void stop()
stop
in interface ResourceAdapter
public void endpointActivation(MessageEndpointFactory endpointFactory, ActivationSpec spec) throws NotSupportedException, ResourceException
endpointActivation
in interface ResourceAdapter
NotSupportedException
ResourceException
public void endpointDeactivation(MessageEndpointFactory endpointFactory, ActivationSpec spec)
endpointDeactivation
in interface ResourceAdapter
public XAResource[] getXAResources(ActivationSpec[] specs) throws ResourceException
getXAResources
in interface ResourceAdapter
ResourceException