TheCICS® Transaction Gateway resource adapters provide additional classes specific to CICS. The following object types are used to define the ECI- and EPI-specific properties:
Spec objects define the action that a resource adapter carries out, for example by specifying the name of a program which is to be executed on CICS.
Record objects store the input/output data that is used during an interaction with an EIS, for example a byte array representing an ECI COMMAREA.
ConnectionFactory cf = <Lookup from JNDI namespace> ECIConnectionSpec cs = new ECIConnectionSpec(); cs.setXXX(); //Set any connection specific properties Connection conn = cf.getConnection( cs ); Interaction interaction = conn.createInteraction(); ECIInteractionSpec is = new ECIInteractionSpec(); is.setXXX(); //Set any interaction specific properties RecordImpl in = new RecordImpl(); RecordImpl out = new RecordImpl(); interaction.execute( is, in, out ); interaction.close(); conn.close();
The following sections cover the ECI and EPI implementations of the CCI classes in detail.