Class MFECINoTxManagedConnectionFactory

This ManagedConnectionFactory implementation class implements the No Transaction support. This is used by the App Server to create and match managed connections.
java.lang.Object

extended by com.microfocus.cics.connector.spi.MFECINoTxManagedConnectionFactory

All Implemented Interfaces

Serializable, javax.resource.spi.ManagedConnectionFactory, javax.resource.spi.ResourceAdapterAssociation

Class Specifications

public class MFECINoTxManagedConnectionFactory

extends Object

implements javax.resource.spi.ManagedConnectionFactory, javax.resource.spi.ResourceAdapterAssociation, Serializable

See Also:

Serialized Form

Constructor Summary

MFECINoTxManagedConnectionFactory()
Create a No TX Managed Connection Factory instance.

Methods

Method Summary
void setResourceAdapter(javax.resource.spi.ResourceAdapter ra)
javax.resource.spi.ResourceAdapter getResourceAdapter()
Boolean getSecureConnection()

Check to ensure that a secure connection is enabled.

Object createConnectionFactory(cxManager)

Create a ConnectionFactory with a Connection Manager instance.

Object createConnectionFactory(javax.resource.spi.ConnectionManager cxManager)

Create a ConnectionFactory with a Connection Manager instance.

javax.resource.spi.ManagedConnection createManagedConnection(Subject subject, javax.resource.spi.ConnectionRequestInfo info)

Create a managed connection to Cobol Server.

ManagedConnection matchManagedConnections(Set connectionSet, Subject subject, javax.resource.spi.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 setTrace(Boolean trace)

Set tracing.

Boolean getTrace()

Check to ensure that tracing is enabled.

void setSecureGUID(Boolean s)

Set secure GUID.

Boolean getSecureGUID()

Check to ensure that a secure GUID is enabled.

void setReadTimeoutInSeconds(Integer readTimeoutInSeconds)

Set ReadTimeoutInSeconds

Integer getReadTimeoutInSeconds()

Get ReadTimeoutInSeconds

void setEnterpriseServerSocketCloseDueToInactivity(Integer enterpriseServerSocketCloseDueToInactivity)

Sets EnterpriseServerSocketCloseDueToInactivity

Integer getEnterpriseServerSocketCloseDueToInactivity()

Gets EnterpriseServerSocketCloseDueToInactivity

void setUrl(String url)
String getUrl()
void setSecureConnection(Boolean s)
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

MFECINoTxManagedConnectionFactory
public MFECINoTxManagedConnectionFactory

Create a No TX Managed Connection Factory instance.

Method Detail

setResourceAdapter
public void setResourceAdapter(ResourceAdapter ra)
                        throws javax.resource.ResourceException
Specified by:
setResourceAdapter in interface javax.resource.spi.ResourceAdapterAssociation
Throws:
javax.resource.ResourceException
getResourceAdapter
public ResourceAdapter getResourceAdapter(ConnectionManager ra)
                                   throws javax.resource.ResourceException)
Specified by:
setResourceAdapter in interface javax.resource.spi.ResourceAdapterAssociation
createConnectionFactory
public Object createConnectionFactory(javax.resource.spi.ConnectionManager cxManager)
Specified by:
createConnectionFactory in interface javax.resource.spi.ManagedConnectionFactory
Parameters:
cxManager The connection Manager Instance. In a managed connection case, the app server supplies the connection manager.
Returns:
An instance of ConnectionFactory
Throws:
javax.resource.ResourceException
createConnectionFactory
public Object createConnectionFactory()
Specified by:
createConnectionFactory in interface javax.resource.spi.ManagedConnectionFactory
Parameters:
cxManager The connection Manager Instance. In a managed connection case, the app server supplies the connection manager.
Returns:
An instance of ConnectionFactory
Throws:
javax.resource.ResourceException
createManagedConnection
public javax.resource.spi.ManagedConnection createManagedConnection(Subject subject,
                                                 javax.resource.spi.ConnectionRequestInfo info)
                                          throws javax.resource.ResourceException

Create a managed connection to Cobol Server.

Specified by:
createManagedConnection in interface javax.resource.spi.ManagedConnectionFactory
Parameters:
subject The subject instance.
info Connection request information.
Returns:
A Managed Connection instance if successful; null otherwise.
Throws:
javax.resource.ResourceException
matchManagedConnections
public javax.resource.spi.ManagedConnection matchManagedConnections(Set connectionSet,
                                                                            Subject subject,
                                                                            javax.resource.spi.ConnectionRequestInfo info)
                                                                     throws javax.resource.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.

Specified by:
matchManagedConnections in interface javax.resource.spi.ManagedConnectionFactory
Parameters:
connectionSet The connection pool of Managed Connections
subject The subject instance.
info Connection request information.
Returns:
A matched managed connection; null if not successful.
Throws:
javax.resource.ResourceException
setLogWriter
public void setLogWriter(PrintWriter out)
                  throws javax.resource.ResourceException

Set log writer.

Specified by:
setLogWriter in interface javax.resource.spi.ManagedConnectionFactory
Parameters:
out PrintWriter instance.
Throws:
javax.resource.ResourceException
getLogWriter
public PrintWriter getLogWriter()
                  throws javax.resource.ResourceException

Get log writer.

Specified by:
getLogWriter in interface javax.resource.spi.ManagedConnectionFactory
Returns:
A PrintWriter instance.
Throws:
javax.resource.ResourceException
equals
public boolean equals (Object obj)
Specified by:
equals in interface javax.resource.spi.ManagedConnectionFactory
Overrides:
equals in class Object
hashCode
public int hashCode()
Specified by:
hashCode in interface javax.resource.spi.ManagedConnectionFactory
Overrides:
hashCode in class Object
setServerHost
public void setServerHost (String serverHost)

Set the server host.

Parameters:
serverHost
getServerHost
public String getServerHost()

Get the server host.

Returns:
The server host.
setServerPort
public void setServerPort(String serverPort)

Set the server port.

Parameters:
serverPort
getServerPort
public String getServerPort()

Get the server port.

Returns:
The server port.
setTrace
public void setTrace(Boolean trace)

Set tracing.

Parameters:
trace
getTrace
public Boolean getTrace()

Check to ensure that tracing is enabled.

Returns:
true if it does; false otherwise
setSecureGUID
public void setSecureGUID(Boolean s)

Set secure GUID.

Parameters:
s
getSecureGUID
public Boolean getSecureGUID()

Check to ensure that a secure GUID is enabled.

Returns:
true if it does; false otherwise
setReadTimeoutInSeconds
public void setReadTimeoutInSeconds(Integer readTimeoutInSeconds)

Set ReadTimeoutInSeconds.

Parameters:
readTimeoutInSeconds
getReadTimeoutInSeconds
public Integer getReadTimeoutInSeconds()

Get ReadTimeoutInSeconds

Returns:
readTimeoutInSeconds
setEnterpriseServerSocketCloseDueToInactivity
public void setEnterpriseServerSocketCloseDueToInactivity(Integer enterpriseServerSocketCloseDueToInactivity)

Set EnterpriseServerSocketCloseDueToInactivity.

Parameters:
enterpriseServerSocketCloseDueToInactivity
getEnterpriseServerSocketCloseDueToInactivity
public Integer getEnterpriseServerSocketCloseDueToInactivity()

Get EnterpriseServerSocketCloseDueToInactivity

Returns:
enterpriseServerSocketCloseDueToInactivity
setUrl
public void setUrl(String url)
getUrl
public String getUrl()
getSecureConnection
public Boolean getSecureConnection()

Check to ensure that a secure connection is enabled

Returns:
true if it does; false otherwise
setSecureConnection
public void setSecureConnection(Boolean s)

Set tracing.

Parameters:
s