|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ResourceAdapter
Operations for lifecycle management and message endpoint configuration. Implementations of this interface must be javabeans
| Method Summary | |
|---|---|
void |
endpointActivation(MessageEndpointFactory endpointFactory,
ActivationSpec spec)
Activates the endpoint factory |
void |
endpointDeactivation(MessageEndpointFactory endpointFactory,
ActivationSpec spec)
Deactivates the endpoint |
XAResource[] |
getXAResources(ActivationSpec[] specs)
Called by the application server during recovery |
void |
start(BootstrapContext ctx)
Used to bootstrap the resource adapter |
void |
stop()
Used to stop the resource adapter |
| Method Detail |
|---|
void start(BootstrapContext ctx)
throws ResourceAdapterInternalException
ctx - the bootstrap context
ResourceAdapterInternalException - for a bootstrap failurevoid stop()
void endpointActivation(MessageEndpointFactory endpointFactory,
ActivationSpec spec)
throws ResourceException
endpointFactory - the endpoint factoryspec - the activation spec
ResourceException - for a generic error
NotSupportedException - for incorrect activation
void endpointDeactivation(MessageEndpointFactory endpointFactory,
ActivationSpec spec)
endpointFactory - the endpoint factoryspec - the activation spec
XAResource[] getXAResources(ActivationSpec[] specs)
throws ResourceException
specs - the activation specs
ResourceException - for a generic error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||