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 Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static CICSLogHelper
int
int
static jakarta.resource.spi.work.WorkManager
static jakarta.resource.spi.XATerminator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a PropertyChangeListener.void
endpointActivation
(jakarta.resource.spi.endpoint.MessageEndpointFactory arg0, jakarta.resource.spi.ActivationSpec arg1) void
endpointDeactivation
(jakarta.resource.spi.endpoint.MessageEndpointFactory arg0, jakarta.resource.spi.ActivationSpec arg1) boolean
void
firePropertyChange
(String strPropertyName, Object oOld, Object oNew) Fires a PropertyChangeEvent to any listeners.Get the ClusterPort to communicate with the CICS TG on.Get the port to communicate with the CICS TG on.static CICSLogHelper
Get the log helper object.MaxSession to define maximum number of sessions allowed per inbound connection.Session Timeout parameter for CICS TG incoming session request.Get the trace level for this managed connection factory.getXAResources
(jakarta.resource.spi.ActivationSpec[] specs) int
hashCode()
void
Removes a PropertyChangeListener.void
setClusterPort
(String newClusterPort) Set the ClusterPort to communicate with the CICS TG on.void
setHostname
(String newHostname) void
setInboundPort
(String newPort) Set the inboundPort to communicate with the CICS TG on.void
setMaxSession
(String newMaxSession) Set the MaxSessio to define Maximum Number of Sessions per inbound Connection.void
setRecoveryTestSetting
(String newRecoveryTestSetting) void
setSessionTimeout
(String newSessionTimeout) Set the Session Timeout for incoming CICS TG connection.void
setTraceLevel
(String newLevel) Set the trace level for this managed connection factory and anything it creates.void
start
(jakarta.resource.spi.BootstrapContext ctx) void
stop()
-
Field Details
-
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
-
-
Constructor Details
-
CTGInboundAdapter
public CTGInboundAdapter()
-
-
Method Details
-
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
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
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
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
-
setRecoveryTestSetting
@ConfigProperty(description="Recovery Test Settings", type=java.lang.String.class, defaultValue="0:0") public void setRecoveryTestSetting(String newRecoveryTestSetting) -
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
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
Adds a PropertyChangeListener.- Parameters:
pcl
- java.beans.PropertyChangeListener.
-
removePropertyChangeListener
Removes a PropertyChangeListener.- Parameters:
pcl
- java.beans.PropertyChangeListener.
-
firePropertyChange
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 interfacejakarta.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 interfacejakarta.resource.spi.ResourceAdapter
- Throws:
jakarta.resource.spi.ResourceAdapterInternalException
-
stop
public void stop()- Specified by:
stop
in interfacejakarta.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 interfacejakarta.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 interfacejakarta.resource.spi.ResourceAdapter
-
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
-
hashCode
public int hashCode()
-