Class CTGInboundAdapter

java.lang.Object
com.ibm.jakarta.connector2.cics.inbound.CTGInboundAdapter
All Implemented Interfaces:
jakarta.resource.spi.ResourceAdapter

@Connector(description="CICS JEE Inbound Resource Adapter", displayName="InboundResourceAdapter", vendorName="IBM", eisType="CICS", version="1.0.0.0", licenseRequired=true, transactionSupport=XATransaction) public class CTGInboundAdapter extends Object implements jakarta.resource.spi.ResourceAdapter
The Inbound RA implementation.
  • Field Details

    • CLASS_VERSION

      public static final String CLASS_VERSION
      See Also:
    • RecoveryTimeout

      public int RecoveryTimeout
    • RecoveryPhase

      public int RecoveryPhase
    • workManager

      public static jakarta.resource.spi.work.WorkManager workManager
    • xaTerminator

      public static jakarta.resource.spi.XATerminator xaTerminator
    • logHelper

      public static CICSLogHelper logHelper
  • Constructor Details

    • CTGInboundAdapter

      public CTGInboundAdapter()
  • Method Details

    • getInboundPort

      public String getInboundPort()
      Get the port to communicate with the CICS TG on.
      Returns:
      The port number.
    • setInboundPort

      @ConfigProperty(description="The port number of CICS Transaction Gateway for inbound communication", type=java.lang.String.class, defaultValue="2007", ignore=true) public void setInboundPort(String newPort)
      Set the inboundPort to communicate with the CICS TG on. Default is 2007 for negative or non numeric values.
      Parameters:
      newPort - The new port number.
    • getMaxSession

      public String getMaxSession()
      MaxSession to define maximum number of sessions allowed per inbound connection.
      Returns:
      MaxSession count.
    • setMaxSession

      @ConfigProperty(description="Maximum number of sessions per incoming connection in CICS Transaction Gateway", type=java.lang.String.class, defaultValue="100", ignore=false) public void setMaxSession(String newMaxSession)
      Set the MaxSessio to define Maximum Number of Sessions per inbound Connection. Default is 100 for negative or non numeric values.
      Parameters:
      newMaxSession - The new MaxSession count.
    • getClusterPort

      public String getClusterPort()
      Get the ClusterPort to communicate with the CICS TG on.
      Returns:
      The ClusterPort number.
    • setClusterPort

      @ConfigProperty(description="The port number of CICS Transaction Gateway for Cluster configuration", type=java.lang.String.class, defaultValue="0") public void setClusterPort(String newClusterPort)
      Set the ClusterPort to communicate with the CICS TG on. Default is 3000 for negative or non numeric values.
      Parameters:
      newClusterPort - The new Cluster port number.
    • getSessionTimeout

      public String getSessionTimeout()
      Session Timeout parameter for CICS TG incoming session request.
      Returns:
      The Session Timeout.
    • setSessionTimeout

      @ConfigProperty(description="The session timeout for CICS Transaction Gateway for inbound session", type=java.lang.String.class, defaultValue="30", ignore=false) public void setSessionTimeout(String newSessionTimeout)
      Set the Session Timeout for incoming CICS TG connection. Default is 30 secs for negative or non numeric values.
      Parameters:
      newSessionTimeout - The new Session Timeout Value.
    • getRecoveryTestSetting

      public String getRecoveryTestSetting()
    • setRecoveryTestSetting

      @ConfigProperty(description="Recovery Test Settings", type=java.lang.String.class, defaultValue="0:0") public void setRecoveryTestSetting(String newRecoveryTestSetting)
    • getHostname

      public String getHostname()
    • setHostname

      @ConfigProperty(description="The hostname of CICS Transaction Gateway for inbound communication", type=java.lang.String.class, defaultValue="", ignore=false) public void setHostname(String newHostname)
    • getTraceLevel

      public String getTraceLevel()
      Get the trace level for this managed connection factory.
      Returns:
      trace level.
      See Also:
    • setTraceLevel

      @ConfigProperty(description="The level of CICS Transaction Gateway diagnostic trace detail", type=java.lang.String.class, defaultValue="1", ignore=false) public void setTraceLevel(String newLevel)
      Set the trace level for this managed connection factory and anything it creates.
      Parameters:
      newLevel - The trace level to use.
      See Also:
    • addPropertyChangeListener

      public void addPropertyChangeListener(PropertyChangeListener pcl)
      Adds a PropertyChangeListener.
      Parameters:
      pcl - java.beans.PropertyChangeListener.
    • removePropertyChangeListener

      public void removePropertyChangeListener(PropertyChangeListener pcl)
      Removes a PropertyChangeListener.
      Parameters:
      pcl - java.beans.PropertyChangeListener.
    • firePropertyChange

      public void firePropertyChange(String strPropertyName, Object oOld, Object oNew)
      Fires a PropertyChangeEvent to any listeners.
      Parameters:
      strPropertyName - java.lang.String.
      oOld - java.lang.Object.
      oNew - java.lang.Object.
    • getXAResources

      public XAResource[] getXAResources(jakarta.resource.spi.ActivationSpec[] specs) throws jakarta.resource.ResourceException
      Specified by:
      getXAResources in interface jakarta.resource.spi.ResourceAdapter
      Throws:
      jakarta.resource.ResourceException
    • start

      public void start(jakarta.resource.spi.BootstrapContext ctx) throws jakarta.resource.spi.ResourceAdapterInternalException
      Specified by:
      start in interface jakarta.resource.spi.ResourceAdapter
      Throws:
      jakarta.resource.spi.ResourceAdapterInternalException
    • stop

      public void stop()
      Specified by:
      stop in interface jakarta.resource.spi.ResourceAdapter
    • endpointActivation

      public void endpointActivation(jakarta.resource.spi.endpoint.MessageEndpointFactory arg0, jakarta.resource.spi.ActivationSpec arg1) throws jakarta.resource.ResourceException
      Specified by:
      endpointActivation in interface jakarta.resource.spi.ResourceAdapter
      Throws:
      jakarta.resource.ResourceException
    • endpointDeactivation

      public void endpointDeactivation(jakarta.resource.spi.endpoint.MessageEndpointFactory arg0, jakarta.resource.spi.ActivationSpec arg1)
      Specified by:
      endpointDeactivation in interface jakarta.resource.spi.ResourceAdapter
    • getLogHelper

      public static CICSLogHelper getLogHelper()
      Get the log helper object. As the log helper is transient, we must use this method. It will create a log helper object at the first use.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object