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

public final class ECIConnectionFactory extends CICSConnectionFactory

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 Details

  • 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

      public String 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 class CICSConnectionFactory
      Returns:
      The string representation of this class.