Package com.ibm.jakarta.connector2.cics
Class ECIConnectionFactory
java.lang.Object
com.ibm.jakarta.connector2.cics.CICSConnectionFactory
com.ibm.jakarta.connector2.cics.ECIConnectionFactory
- All Implemented Interfaces:
jakarta.resource.cci.ConnectionFactory
,jakarta.resource.Referenceable
,Serializable
,Referenceable
The ECIConnectionFactory allows a client component to request a connection to CICS. The getConnection() method is used to return an ECIConnection object that represents a handle to the underlying connection to CICS.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.ECIConnectionFactory
(jakarta.resource.spi.ConnectionManager cm, ECIManagedConnectionFactory emcf) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionjakarta.resource.cci.Connection
getConnection
(jakarta.resource.cci.ConnectionSpec spec) This is the extended version of getConnection() which allows the user to pass an ECIConnectionSpec parameter containing their user credentials.jakarta.resource.cci.ResourceAdapterMetaData
Returns information about the resource adapter.toString()
Return a String representation of this class.Methods inherited from class com.ibm.jakarta.connector2.cics.CICSConnectionFactory
getConnection, getRecordFactory, getReference, setReference
-
Field Details
-
CLASS_VERSION
- See Also:
-
-
Constructor Details
-
ECIConnectionFactory
public ECIConnectionFactory()Default constructor. This constructor cannot be used to create a valid ECIConnectionFactory. It is only used by runtime servers that wish to create a simple object to handle referenceable usage. -
ECIConnectionFactory
public ECIConnectionFactory(jakarta.resource.spi.ConnectionManager cm, ECIManagedConnectionFactory emcf) Constructor.
-
-
Method Details
-
getConnection
public jakarta.resource.cci.Connection getConnection(jakarta.resource.cci.ConnectionSpec spec) throws jakarta.resource.ResourceException This is the extended version of getConnection() which allows the user to pass an ECIConnectionSpec parameter containing their user credentials.- Parameters:
spec
- The ECIConnectionSpec containing the user's security credentials.- Returns:
- The ECIConnection object representing the connection to CICS.
- Throws:
jakarta.resource.ResourceException
-
getMetaData
public jakarta.resource.cci.ResourceAdapterMetaData getMetaData()Returns information about the resource adapter.- Returns:
- The metadata for this resource adapter.
-
toString
Return a String representation of this class. This will return a string containing all the relevant property contents of this class.- Overrides:
toString
in classCICSConnectionFactory
- Returns:
- The string representation of this class.
-