@ConnectionDefinition(connectionFactory=javax.resource.cci.ConnectionFactory.class,
connectionFactoryImpl=EPIConnectionFactory.class,
connection=javax.resource.cci.Connection.class,
connectionImpl=EPIConnection.class)
public final class EPIManagedConnectionFactory
extends CICSManagedConnectionFactory
implements javax.resource.spi.ManagedConnectionFactory
RAS_TRACE_ENTRY_EXIT, RAS_TRACE_ERROR_EXCEPTION, RAS_TRACE_INTERNAL, RAS_TRACE_OFF| Constructor and Description |
|---|
EPIManagedConnectionFactory()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
createConnectionFactory()
This will create an EPIConnectionFactory.
|
java.lang.Object |
createConnectionFactory(javax.resource.spi.ConnectionManager manager)
This will create an EPIConnectionFactory.
|
boolean |
equals(java.lang.Object inObj)
Returns true if all the configurable properties are equal.
|
java.lang.String |
getDeviceType()
Return the current device type.
|
java.lang.String |
getEncoding()
Return the current encoding.
|
java.lang.Integer |
getInstallTimeout()
Get the install timeout value in seconds.
|
java.lang.String |
getLogonLogoffClass()
Return the current logonLogoff class name.
|
java.lang.Integer |
getReadTimeout()
Returns the current read timeout value in seconds.
|
java.lang.Integer |
getSignonType()
Return the sign on type:
|
int |
hashCode()
Returns a hashcode based on all configurable properties.
|
void |
setApplid(java.lang.String newApplid)
Set the applid for this connection.
|
void |
setApplidQualifier(java.lang.String newApplidHLQ)
Set the applid qualifier for this connection.
|
void |
setCipherSuites(java.lang.String cipherSuites)
Set the cipher suites a SSL connection is able to use.
|
void |
setClientSecurity(java.lang.String newClSec)
Set the client security class name to be used.
|
void |
setConnectionURL(java.lang.String newURL)
Set the CICS TG gateway URL.
|
void |
setDeviceType(java.lang.String strDevice)
Set the device type that terminals created through this factory should use.
|
void |
setEncoding(java.lang.String strEncoding)
Set the encoding you wish to have the 3270 datastreams converted
to and send to the CICS server.
|
void |
setInstallTimeout(java.lang.Integer iInstallTimeout)
Set the install timeout.
|
void |
setInterceptPlugin(java.lang.String interceptPlugin)
Sets the name of the
GatewayIntercept plug-in class for this managed
connection factory. |
void |
setKeyRingClass(java.lang.String newKeyRing)
Set the key ring class name to use (applicable and mandatory for SSL
protocol(s)).
|
void |
setKeyRingPassword(java.lang.String newPassword)
Set the key ring password to use (applicable and mandatory for SSL
protocol).
|
void |
setLogonLogoffClass(java.lang.String strLogonLogoff)
Set the logonLogoff class to be instantiated and called if a
signon capable or signon unknown terminal is created.
|
void |
setPassword(java.lang.String newPassword)
Set the password for this connection.
|
void |
setPortNumber(java.lang.String newPort)
Set the port to communicate with the CICS TG on.
|
void |
setReadTimeout(java.lang.Integer iReadTimeout)
Set the read timeout.
|
void |
setRequestExits(java.lang.String newRequestExits)
Set the requestExits for this connection.
|
void |
setServerName(java.lang.String newServer)
Set the server to connect to (this name must be defined in the CICS TG
config).
|
void |
setServerSecurity(java.lang.String newSvrSec)
Set the server security class name to be used.
|
void |
setSignonType(java.lang.Integer newSignon)
Set the sign on type:
0 = Signon Capable 1 = Signon InCapable |
void |
setSocketConnectTimeout(java.lang.String newTimeout)
Sets the socket connection timeout value for a connection to CICS TG.
|
void |
setTraceLevel(java.lang.Integer newLevel)
Set the trace level for this managed connection factory and
anything it creates.
|
void |
setUserName(java.lang.String newUser)
Set the username for this connection.
|
java.lang.String |
toString()
Return a string representation of this class.
|
addPropertyChangeListener, firePropertyChange, getApplid, getApplidQualifier, getCipherSuites, getClientSecurity, getConnectionURL, getInterceptPlugin, getInvalidConnections, getKeyRingClass, getKeyRingPassword, getLogHelper, getLogWriter, getPassword, getPortNumber, getRequestExits, getServerName, getServerSecurity, getSocketConnectTimeout, getTraceLevel, getUserName, removePropertyChangeListener, setLogWriterpublic EPIManagedConnectionFactory()
@ConfigProperty(description="The sign-on capability for terminal install requests",
type=java.lang.Integer.class,
defaultValue="0")
public void setSignonType(java.lang.Integer newSignon)
Invalid value results in Signon Capable.
newSignon - The sign on type requiredpublic java.lang.Integer getSignonType()
0 = Signon Capable
1 = Signon Incapable
@ConfigProperty(description="The code page for terminal install requests",
type=java.lang.String.class)
public void setEncoding(java.lang.String strEncoding)
strEncoding - The Java Encoding to use for 3270 datastreams.public java.lang.String getEncoding()
@ConfigProperty(description="The CICS model terminal definition for terminal install requests",
type=java.lang.String.class)
public void setDeviceType(java.lang.String strDevice)
strDevice - The device type.public java.lang.String getDeviceType()
@ConfigProperty(description="The name of the LogonLogoff class to use for security",
type=java.lang.String.class)
public void setLogonLogoffClass(java.lang.String strLogonLogoff)
strLogonLogoff - The fully qualified class name.public java.lang.String getLogonLogoffClass()
@ConfigProperty(description="The number of seconds the connection waits for a response from the Client application",
type=java.lang.Integer.class)
public void setReadTimeout(java.lang.Integer iReadTimeout)
iReadTimeout - The read timeout value in seconds.public java.lang.Integer getReadTimeout()
@ConfigProperty(description="The number of seconds the connection waits for a terminal to be installed",
type=java.lang.Integer.class)
public void setInstallTimeout(java.lang.Integer iInstallTimeout)
iInstallTimeout - The install timeout in seconds.public java.lang.Integer getInstallTimeout()
public java.lang.Object createConnectionFactory()
throws javax.resource.ResourceException
This method creates a connection factory in a non-managed environment, so a supplied default connection manager is used rather than an application server environment.
createConnectionFactory in interface javax.resource.spi.ManagedConnectionFactoryresourceExceptionjavax.resource.ResourceExceptionpublic java.lang.Object createConnectionFactory(javax.resource.spi.ConnectionManager manager)
throws javax.resource.ResourceException
This method creates a connection factory in a managed environment, so will be invoked by an application server, providing it's own connection manager.
createConnectionFactory in interface javax.resource.spi.ManagedConnectionFactorymanager - A suitable ConnectionManager to be associated with the EPIConnectionFactory.resourceExceptionjavax.resource.ResourceExceptionpublic boolean equals(java.lang.Object inObj)
equals in interface javax.resource.spi.ManagedConnectionFactoryequals in class CICSManagedConnectionFactorypublic int hashCode()
hashCode in interface javax.resource.spi.ManagedConnectionFactoryhashCode in class CICSManagedConnectionFactorypublic java.lang.String toString()
toString in class CICSManagedConnectionFactory@ConfigProperty(description="The URL of the CICS Transaction Gateway for this connection",
type=java.lang.String.class)
public void setConnectionURL(java.lang.String newURL)
newURL - The new CICS TG gateway URL.@ConfigProperty(description="The name of the target CICS server for this connection",
type=java.lang.String.class)
public void setServerName(java.lang.String newServer)
newServer - The server to connect to.@ConfigProperty(description="The default user name that requests through this connection use",
type=java.lang.String.class)
public void setUserName(java.lang.String newUser)
newUser - The new username.@ConfigProperty(description="The class name of the request exits called during the execution of interactions",
type=java.lang.String.class)
public void setRequestExits(java.lang.String newRequestExits)
newRequestExits - The new requestExits.@ConfigProperty(description="The APPLID for application using this connection",
type=java.lang.String.class)
public void setApplid(java.lang.String newApplid)
newApplid - The new applid.@ConfigProperty(description="The APPLID qualifier for applications using this connection",
type=java.lang.String.class)
public void setApplidQualifier(java.lang.String newApplidHLQ)
newApplidHLQ - The new applid qualifier.@ConfigProperty(description="The default password that requests through this connection use",
type=java.lang.String.class)
public void setPassword(java.lang.String newPassword)
newPassword - The new password.@ConfigProperty(description="The port number of the CICS Transaction Gateway for this connection",
type=java.lang.String.class)
public void setPortNumber(java.lang.String newPort)
newPort - The new port number.@ConfigProperty(description="The number of seconds to wait while connecting to a Gateway daemon",
type=java.lang.String.class)
public void setSocketConnectTimeout(java.lang.String newTimeout)
throws javax.resource.spi.InvalidPropertyException
newTimeout - The timeout value (in milliseconds). A value of 0 represents no
timeout. Note the value is passed as a Stringjavax.resource.spi.InvalidPropertyException - If a negative value is passed@ConfigProperty(description="The class name of the client security exit for this connection",
type=java.lang.String.class)
public void setClientSecurity(java.lang.String newClSec)
newClSec - The client security class name.@ConfigProperty(description="The class name of the server security exit for this connection requires the Gateway daemon to use",
type=java.lang.String.class)
public void setServerSecurity(java.lang.String newSvrSec)
newSvrSec - The server security class name.@ConfigProperty(description="The location of the keystore containing the certificates required for an SSL connection",
type=java.lang.String.class)
public void setKeyRingClass(java.lang.String newKeyRing)
newKeyRing - The key ring class name.@ConfigProperty(description="The password required to access the keystore for an SSL connection",
type=java.lang.String.class)
public void setKeyRingPassword(java.lang.String newPassword)
newPassword - The key ring class password.@ConfigProperty(description="The cipher suites available for an SSL connection",
type=java.lang.String.class)
public void setCipherSuites(java.lang.String cipherSuites)
cipherSuites - A comma delimited list of cipher suites.@ConfigProperty(description="The level of CICS Transaction Gateway diagnostic trace detail",
type=java.lang.Integer.class)
public void setTraceLevel(java.lang.Integer newLevel)
newLevel - The trace level to use.CICSLogTraceLevels@ConfigProperty(description="The class name of the Gateway intercept plug-in",
type=java.lang.String.class)
public void setInterceptPlugin(java.lang.String interceptPlugin)
GatewayIntercept plug-in class for this managed
connection factory.interceptPlugin - the name of the Gateway intercept plug-in class