ECI Connection Spec

The ConnectionSpec class is a CICS-specific class used to pass specific information between the Java™ Client application and CICS®.

The J2C tools use the ConnectionFactory and Connection interfaces to establish a connection with a CICS server. The ECI resource adapter provides implementations of the connection interfaces, but your application does not work directly with the ECI implementations; instead, it uses the ECIConnectionSpec class directly to define the properties of the connection. The ECIConnectionSpec class allows the J2EE component to override the userid and password set at deployment time. So the code used to obtain a connection looks something like this:

ConnectionFactory cf = [Lookup from JNDI namespace]
ECIConnectionSpec cs = new ECIConnectionSpec();
cs.setUserName("myuser");
cs.setPassword("mypass");
Connection conn = cf.getConnection(cs);

ECIConnectionSpec Properties


Feedback