|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ResourceAdapter
This represents a resource adapter instance and contains operations for lifecycle management and message endpoint setup. A concrete implementation of this interface is required to be a JavaBean.
| Method Summary | |
|---|---|
void |
endpointActivation(MessageEndpointFactory endpointFactory,
ActivationSpec spec)
This is called during the activation of a message endpoint. |
void |
endpointDeactivation(MessageEndpointFactory endpointFactory,
ActivationSpec spec)
This is called when a message endpoint is deactivated. |
XAResource[] |
getXAResources(ActivationSpec[] specs)
This method is called by the application server during crash recovery. |
void |
start(BootstrapContext ctx)
This is called when a resource adapter instance is bootstrapped. |
void |
stop()
This is called when a resource adapter instance is undeployed or during application server shutdown. |
| Method Detail |
|---|
void start(BootstrapContext ctx)
throws ResourceAdapterInternalException
ctx - a bootstrap context containing references to useful
facilities that could be used by a resource adapter instance.
ResourceAdapterInternalException - indicates bootstrap
failure. The resource adapter instance is unusable and
must be discarded.void stop()
void endpointActivation(MessageEndpointFactory endpointFactory,
ActivationSpec spec)
throws ResourceException
endpointFactory - a message endpoint factory instance.spec - an activation spec JavaBean instance.
NotSupportedException - indicates message endpoint activation
rejection due to incorrect activation setup information.
ResourceException
void endpointDeactivation(MessageEndpointFactory endpointFactory,
ActivationSpec spec)
endpointFactory - a message endpoint factory instance.spec - an activation spec JavaBean instance.
XAResource[] getXAResources(ActivationSpec[] specs)
throws ResourceException
specs - an array of ActivationSpec JavaBeans each of which
corresponds to an deployed endpoint application that was active
prior to the system crash.
ResourceException - generic exception if operation fails due to
an error condition.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||