public class ResourceAdapterImpl extends java.lang.Object implements ResourceAdapter
| Constructor and Description |
|---|
ResourceAdapterImpl() |
| 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.
|
ConnectionFactory |
getConnectionFactory()
Gets the connection factory.
|
Destination |
getDestination()
Gets the destination
|
XAResource[] |
getXAResources(ActivationSpec[] specs)
Called during crash recovery.
|
void |
init()
Initialization.
|
void |
setConnectionFactory(ConnectionFactory factory)
Sets the connection factory.
|
void |
setDestination(Destination destination)
Sets the destination
|
void |
start(BootstrapContext ctx)
Called when the resource adapter is started.
|
void |
stop()
Called when the resource adapter is stopped.
|
public void setConnectionFactory(ConnectionFactory factory)
public ConnectionFactory getConnectionFactory()
public void setDestination(Destination destination)
public Destination getDestination()
public void init()
throws ConfigException
ConfigExceptionpublic void start(BootstrapContext ctx) throws ResourceAdapterInternalException
start in interface ResourceAdapterResourceAdapterInternalExceptionpublic void stop()
stop in interface ResourceAdapterpublic void endpointActivation(MessageEndpointFactory endpointFactory, ActivationSpec spec) throws NotSupportedException, ResourceException
endpointActivation in interface ResourceAdapterNotSupportedExceptionResourceExceptionpublic void endpointDeactivation(MessageEndpointFactory endpointFactory, ActivationSpec spec)
endpointDeactivation in interface ResourceAdapterpublic XAResource[] getXAResources(ActivationSpec[] specs) throws ResourceException
getXAResources in interface ResourceAdapterResourceException