Method Summary | |
---|---|
void | endpointActivation(javax.resource.spi.endpoint.MessageEndpointFactory endpointFactory, javax.resource.spi.ActivationSpec spec)
Called by the Application Server when a message-driven bean (MessageEndpoint) is deployed. |
void | endpointDeactivation(javax.resource.spi.endpoint.MessageEndpointFactory endpointFactory, javax.resource.spi.ActivationSpec spec)
Called by Application Server when the MessageEndpoint (message-driven bean) is undeployed. |
javax.resource.spi.ActivationSpec | getEnterpriseServerSocketCloseDueToInactivity() |
Integer | getReadTimeoutInSeconds() |
Boolean | getSecureConnection() |
Boolean | getSecureGUID() |
String | getServerHost() |
String | getServerPort() |
Boolean | getTrace() |
XAResource[] | getXAResources(javax.resource.spi.ActivationSpec[] specs)
This method is called by the application server on the restart of the application server when there are potential pending transactions. |
void | setEnterpriseServerSocketCloseDueToInactivity(Integer t) |
void | setReadTimeoutInSeconds(Integer readTimeoutInSeconds) |
void | setSecureConnection(Boolean secureConnection) |
void | setSecureGUID(Boolean s) |
void | setServerHost(String serverHost) |
void | setServerPort(String serverPort) |
void | setTrace(Boolean trace) |
void |
start(javax.resource.spi.BootstrapContext ctx)
Called by the application server to initialize the resource adapter. |
stop | stop() |
public void start(javax.resource.spi.BootstrapContext ctx) throws javax.resource.spi.ResourceAdapterInternalException
Called by the AppServer to initialize the Resource Adapter.
public void stop()
public void endPointActivation(javax.resource.spi.endpoint.MessageEndpointFactory endpointFactory, javax.resource.spi.ActivationSpec spec) throws javax.resource.NotSupportedException
Called by the Application Server when a message-driven bean (MessageEndpoint) is deployed. Causes the resource adapter instance to do the necessary setup (setting up message delivery for the message endpoint with a message provider).
public void endPointDeactivation(javax.resource.spi.endpoint.MessageEndpointFactory endpointFactory, javax.resource.spi.ActivationSpec spec)
Called by Application Server when the MessageEndpoint (message-driven bean) is undeployed. The instance passed as arguments to this method call should be identical to that passed in for the corresponding endpointActivation call. This causes the resource adapter to stop delivering messages to the message endpoint.
public XAResource[] getXAResources(javax.resource.spi.ActivationSpec[] specs)
throws javax.resource.ResourceException
This method is called by the application server during crash recovery. This method takes in an array of ActivationSpec JavaBeans and returns an array of XAResource objects each of which represents a unique resource manager. The resource adapter may return null if it does not implement the XAResource interface. Otherwise, it must return an array of XAResource objects, each of which represents a unique resource manager that was used by the endpoint applications. The application server uses the XAResource objects to query each resource manager for a list of in-doubt transactions. It then completes each pending transaction by sending the commit decision to the participating resource managers.
public void setServerHost (String serverHost)
public String getServerHost()
public void setServerPort(String serverPort)
public String getServerPort()
public void setTrace(Boolean trace)
public Boolean getTrace()
Check to ensure that tracing is enabled.
public void setSecureGUID(Boolean s)
public Boolean getSecureGUID()
Check to ensure that secure GUID is enabled.
public void setReadTimeoutInSeconds(Integer readTimeoutInSeconds)
public Integer getReadTimeoutInSeconds()
public void getEnterpriseServerSocketCloseDueToInactivity(Integer t)
public Integer getEnterpriseServerSocketCloseDueToInactivity()
public void setSecureConnection(Boolean secureConnection)
public Integer getSecureConnection()