Using the ECI resource adapter with channels and containers

To use channels and containers in the JEE Connector Architecture (JCA), use an ECIChannelRecord to hold your data. When the ECIChannelRecord is passed to the execute() method of ECIInteraction, the method uses the ECIChannelRecord itself to create a channel and converts the entries inside the ECIChannelRecord into containers before passing them to CICS®.

The ECIChannelRecord allows multiple data records to pass over the same interface to and from the execute() method of ECIInteraction. A container is created for each entry in the channel. You can have a combination of container types in one channel. The containers are of the following types:

You can create your own data records, which must conform to existing JCA rules (they must implement the javax.resource.cci.Streamable and javax.resource.cci.Record interfaces). Any data records you create are treated as containers with a data type of BIT.

You can also use an existing Record type, for example, JavaStringRecord, to create a container with a data type of BIT.

The ECIChannelRecord.getRecordName method obtains the name of the channel. When creating your Record, you must make sure that the name is not an empty string. The record.getRecordName method retrieves the name of the containers.

The JCA resource adapter handles ECIChannelRecord and Records differently, when it receives the data in the execute() method of ECIInteraction.
Figure 1. Data conversion by the execute() method of ECIInteraction, depending on whether it receives a Record or ECIChannelRecord
This image summarizes the points made in this topic. A Record and Streamable Record are passed to the execute() method of ECIInteraction, which implements a COMMAREA. Four Records (byte[], String, JavaStringRecord,, and Record and Streamable) are passed in a ECIChannelRecord to the execute()method of ECIInteraction. Each record is implemented in a CHAR container (String) or a BIT container (byte[], JavaStringRecord,, and Record and Streamable).

Information Information

Feedback


Timestamp icon Last updated: Wednesday, 27 August 2014


https://ut-ilnx-r4.hursley.ibm.com/tgzos_latest/help/topic/com.ibm.cics.tg.zos.doc//progguide/topics/eciracandc.html