java.lang.Objectcom.microfocus.cobol.connector.spi.CobolResourceAdapter
Field Summary | |
protected String |
logHost
|
protected String |
logPort
|
protected String |
serverHost
|
protected String |
serverPort
|
protected Boolean |
trace
|
Constructor Summary | |
CobolResourceAdapter()
Constructor. |
Method Summary | |
void |
endpointActivation(MessageEndpointFactory endpointFactory,
ActivationSpec spec)
Called by the Application Server when a message-driven bean (MessageEndpoint) is deployed. |
void |
endpointDeactivation(MessageEndpointFactory endpointFactory,
ActivationSpec spec)
Called by Application Server when the MessageEndpoint (message-driven bean) is undeployed. |
String |
getLogHost()
Get the log host |
String |
getLogPort()
Get the log port |
String |
getServerHost()
Get the server host |
String |
getServerPort()
Get the server port |
Boolean |
getTrace()
Check if tracing is enabled. |
XAResource[] |
getXAResources(ActivationSpec[] specs)
This method is called by the Application Server on the restart of the Application Server when there are potential pending transactions. |
void |
setLogHost(String logHost)
set the log Host |
void |
setLogPort(String logPort)
Set the log port |
void |
setServerHost(String serverHost)
Set the server host |
void |
setServerPort(String serverPort)
Set the server port |
void |
setTrace(Boolean trace)
set tracing |
void |
start(BootstrapContext ctx)
Called by the AppServer to initialize the Resource Adapter. |
void |
stop()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected String serverHost
protected String serverPort
protected String logHost
protected String logPort
protected Boolean trace
Constructor Detail |
public CobolResourceAdapter()
Method Detail |
public void start(BootstrapContext ctx) throws ResourceAdapterInternalException
ctx
- the BootstrapContext
ResourceAdapterInternalException
public void stop()
public void endpointActivation(MessageEndpointFactory endpointFactory, ActivationSpec spec) throws NotSupportedException
endpointFactory
- a message endpoint factory instancespec
- an ActivationSpec instance
NotSupportedException
- if message endpoint activation is
rejected because of incorrect
activation setup informationpublic void endpointDeactivation(MessageEndpointFactory endpointFactory, ActivationSpec spec)
endpointFactory
- a message endpoint factory instancespec
- an activation spec instancepublic XAResource[] getXAResources(ActivationSpec[] specs) throws ResourceException
specs
- an array of ActivationSpec objects
ResourceException
public void setServerHost(String serverHost)
serverHost
- public String getServerHost()
public void setServerPort(String serverPort)
serverPort
- public String getServerPort()
public void setLogHost(String logHost)
logHost
- public String getLogHost()
public void setLogPort(String logPort)
logPort
- public String getLogPort()
public void setTrace(Boolean trace)
trace
- public Boolean getTrace()
Copyright © 2000 Micro Focus International Limited. All rights reserved.
This document and the proprietary marks and names used herein are protected by international law.