public class CobolResourceAdapter
extends Object
implements ResourceAdapter, Serializable
See Also:
protected String | serverHost |
protected String | serverPort |
protected String | logHost |
protected String | logPort |
protected Boolean | trace |
protected Boolean | secureGUID |
protected Integer | readTimeoutInSeconds |
Method Summary | |
---|---|
void | start(BootstrapContext ctx) |
stop | stop() |
void | endpointActivation(MessageEndpointFactory endpointFactory,
ActivationSpec spec)
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). |
void | endpointDeactivation(MessageEndpointFactory endpointFactory,
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. |
XAResource[] | getXAResources(ActivationSpec[] specs)
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. |
void | setServerHost(String serverHost)
Set the server host. |
String | getServerHost()
Get the server host. |
void | setServerPort(String serverPort)
Set the server port. |
String | getServerPort()
Get the server port. |
void | setLogHost(String logHost)
Set the log host. |
String | getLogHost()
Get the log host. |
void | setLogPort(String logPort)
Set the log port. |
String | getLogPort()
Get the log port. |
void | setTrace(Boolean trace)
Set tracing. |
Boolean | getTrace()
Check if tracing is enabled. |
void | setSecureGUID(Boolean s)
Set secure GUID. |
Boolean | getSecureGUID()
Get secure GUID |
void | setReadTimeoutInSeconds(Integer readTimeoutInSeconds)
Set ReadTimeoutInSeconds |
Integer | getReadTimeoutInSeconds()
Get ReadTimeoutInSeconds |
public void start(BootstrapContext ctx) throws ResourceAdapterInternalException
Called by the AppServer to initialize the Resource Adapter.
public void stop()
public void endPointActivation(MessageEndpointFactory endpointFactory, ActivationSpec spec) throws 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(MessageEndpointFactory endpointFactory, 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(ActivationSpec[] specs) throws 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)
Set the server host.
public String getServerHost()
Get the server host.
public void setServerPort(String serverPort)
Set the server port.
public String getServerPort()
Get the server port.
public void setLogHost(String logHost)
Set the log host.
public String getLogHost()
Get the log host.
public void setLogPort(String logPort)
Set the log port
public String getLogPort()
Get the log port.
public void setTrace(Boolean trace)
Set tracing.
public Boolean getTrace()
Check if tracing is enabled.
public void setSecureGUID(Boolean s)
Set secure GUID.
public Boolean getSecureGUID()
Check if secure GUID is enabled.
public void setReadTimeoutInSeconds(Integer readTimeoutInSeconds)
Set ReadTimeoutInSeconds.
public Integer getReadTimeoutInSeconds()
Get ReadTimeoutInSeconds