 com.microfocus.cobol.connector.spi.CobolManagedConnectionFactory
 
                  		  com.microfocus.cobol.connector.spi.CobolManagedConnectionFactory 
                     		   
                  		
               
ManagedConnectionFactory, ResourceAdapterAssociation, Serializable
public class CobolManagedConnectionFactory
extends Object
implements ManagedConnectionFactory, ResourceAdapterAssociation, 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 | setResourceAdapter(ResourceAdapter ra) | 
| ResourceAdapter | getResourceAdapter(ConnectionManager ra) | 
| Object | createConnectionFactory(cxManager) Create a ConnectionFactory with a Connection Manager instance. | 
| Object | createConnectionFactory(cxManager) | 
| ManagedConnection | createManagedConnection(Subject subject, 
                                 						ConnectionRequestInfo info) Create a managed connection to Cobol Server. | 
| ManagedConnection | matchManagedConnections(Set connectionSet, 
                                 						Subject subject, 
                                 						ConnectionRequestInfo info) Match Managed Connections. The App Server calls this function to match a connection from the set of connections. The match is based on security credentials. | 
| void | setLogWriter(PrintWriter out) Set log writer. | 
| void | getLogWriter() Get log writer. | 
| boolean | equals(Object obj) | 
| int | hashcode() | 
| 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 CobolManagedConnectionFactory
Create a Local TX Managed Connection Factory instance.
public void setResourceAdapter(ResourceAdapter ra) throws ResourceException
public ResourceAdapter getResourceAdapter(ConnectionManager ra) throws ResourceException)
public Object createConnectionFactory(cxManager)
Create a ConnectionFactory with a Connection Manager instance.
| cxManager | The connection Manager Instance. In a managed connection case, the app server supplies the connection manager. | 
public Object createConnectionFactory() throws ResourceException
public ManagedConnection createManagedConnection(Subject subject, ConnectionRequestInfo info) throws ResourceException
Create a managed connection to Cobol Server.
| subject | The subject instance. | 
| info | Connection request information. | 
public ManagedConnection matchManagedConnections(Set connectionSet, Subject subject, ConnectionRequestInfo info) throws ResourceException
Match Managed Connections. The App Server calls this function to match a connection from the set of connections. The match is based on security credentials.
| connectionSet | The connection pool of Managed Connections | 
| subject | The subject instance. | 
| info | Connection request information. | 
public void setLogWriter(PrintWriter out) throws ResourceException
Set log writer.
| out | PrintWriter instance. | 
public void getLogWriter()
                  throws ResourceException 
                     				Get log writer.
public void setServerHost (String serverHost)
Set the server host.
| serverHost | 
public String getServerHost()
Get the server host.
public void setServerPort(String serverPort)
Set the server port.
| serverPort | 
public String getServerPort()
Get the server port.
public void setLogHost(String logHost)
Set the log host.
| logHost | 
public String getLogHost()
Get the log host.
public void setLogPort(String logPort)
Set the log port
| logPort | 
public String getLogPort()
Get the log port.
public void setTrace(Boolean trace)
Set tracing.
| trace | 
public Boolean getTrace()
Check if tracing is enabled.
public void setSecureGUID(Boolean s)
Set secure GUID.
| s | 
public Boolean getSecureGUID()
Check if secure GUID is enabled.
public void setReadTimeoutInSeconds(Integer readTimeoutInSeconds)
Set ReadTimeoutInSeconds.
| readTimeoutInSeconds | 
public Integer getReadTimeoutInSeconds()
Get ReadTimeoutInSeconds
public boolean equals (Object obj)
public int hashCode()