| Modifier and Type | Method and Description |
|---|---|
| public void | endpointActivation(MessageEndpointFactory
a message endpoint factory instance. endpointFactory, ActivationSpec an activation spec JavaBean instance. spec)This is called during the activation of a message endpoint. |
| public void | endpointDeactivation(MessageEndpointFactory
a message endpoint factory instance. endpointFactory, ActivationSpec an activation spec JavaBean instance. spec)This is called when a message endpoint is deactivated. |
| public XAResource[] | Returns: an array ofXAResource objects each of which
represents a unique resource manager.an array of specs)ActivationSpec JavaBeans each of
which corresponds to an deployed endpoint application that was
active prior to the system crash.This method is called by the application server during crash recovery. |
| public void | start(BootstrapContext
a bootstrap context containing references to
useful facilities that could be used by a resource adapter instance. ctx)This is called when a resource adapter instance is bootstrapped. |
| public void | stop()
This is called when a resource adapter instance is undeployed or during application server shutdown. |
| endpointActivation | back to summary |
|---|---|
| public void endpointActivation(MessageEndpointFactory endpointFactory, ActivationSpec spec) throws ResourceException This is called during the activation of a message endpoint. This causes the resource adapter instance to do the necessary setup (ie., setup message delivery for the message endpoint with a message provider). Note that message delivery to the message endpoint might start even before this method returns. Endpoint activation is deemed successful only when this method completes successfully without throwing any exceptions.
| |
| endpointDeactivation | back to summary |
|---|---|
| public void endpointDeactivation(MessageEndpointFactory endpointFactory, ActivationSpec spec) This is called when a message endpoint is deactivated. The instances passed as arguments to this method call should be identical to those passed in for the corresponding endpointActivation call. This causes the resource adapter to stop delivering messages to the message endpoint. Any exception thrown by this method is ignored. After this method call, the endpoint is deemed inactive.
| |
| getXAResources | back to summary |
|---|---|
| public XAResource[] getXAResources(ActivationSpec[] specs) throws ResourceException This method is called by the application server during crash recovery.
This method takes in an array of
| |
| start | back to summary |
|---|---|
| public void start(BootstrapContext ctx) throws ResourceAdapterInternalException This is called when a resource adapter instance is bootstrapped. This may be during resource adapter deployment or application server startup. This is a startup notification from the application server, and this method is called by an application server thread. The application server thread executes in an unspecified context. During this method call a ResourceAdapter JavaBean is responsible for initializing the resource adapter instance. Any exception thrown during this method call causes the application server to abort the bootstrap procedure for this specific resource adapter instance.
| |
| stop | back to summary |
|---|---|
| public void stop() This is called when a resource adapter instance is undeployed or during application server shutdown. This is a shutdown notification from the application server, and this method is called by an application server thread. The application server thread executes in an unspecified context. During this method call, a ResourceAdapter JavaBean is responsible for performing an orderly shutdown of the resource adapter instance. Any exception thrown by this method call does not alter the processing of the application server shutdown or resource adapter undeployment that caused this method call. The application server may log the exception information for error reporting purposes. | |