The generic CCI classes define the environment in which a J2EE component
can send and receive data from an EIS. When you are developing a J2EE component
you must implement the following steps:
- Use the ConnectionFactory object to create a Connection object.
- Use the Connection object to create an Interaction object.
- Use the Interaction object to execute commands on the EIS.
- Close the Interaction and Connection.
The following example shows the use of the J2EE CCI interfaces to execute
a command on an EIS.
ConnectionFactory cf = <Lookup from JNDI namespace>
Connection conn = cf.getConnection();
Interaction interaction = conn.createInteraction();
interaction.execute(<Input output data>);
interaction.close();
conn.close();