Configuring Multiple Adapters; Updating Configuration Information - Oracle B31003-01 User Manual

Oracle application server adapter for ims/tm user's guide
Table of Contents

Advertisement

Configuring Multiple Adapters

Create a Connection object using the selected ConnectionFactory. A
2.
Connection is a handle to the underlying network connection to the EIS, which
is identified in the oc4j-ra.xml file by the serverName property.
Create a Connection object using the selected ConnectionFactory. Specify
3.
the interaction properties using an AttuInteractionSpec object. The
AttuInteractionSpec object has the following format:
AttuInteractionSpec(java.lang.String name, int verb, int timeOut)
The following table describes the properties that can be specified:
Table 2–2
Property
name
verb
timeOut
The following is an InteractionSpec sample:
AttuInteractionSpec iSpeq = new AttuInteractionSpec("query",
javax.resource.cci.InteractionSpec.SYNC_RECEIVE, 60);
javax.resource.cci.RecordFactory rf = new AttuRecordFactory(con,
mcf.getLogger());
javax.resource.cci.MappedRecord queryRecord = rf.createMappedRecord("query"),
queryRecord.put("##text", "select * from disam:nation");
javax.resource.cci.Record oRec = interaction.execute(iSpec, queryRecord);
Invoke the execute method on the interaction to initiate a call to the EIS. Pass
4.
any data for the interaction as input and output records.
Once the interactions have been processed, close the Interaction and
5.
Connection objects.
Configuring Multiple Adapters
Each J2CA 1.5 IMS/TM adapter requires an entry in the oc4j-ra.xml file as
described in on page 2-2.

Updating Configuration Information

You can change the configuration settings for a resource adapter by editing the
relevant connector-factory entry in the oc4j-ra.xml file. For these changes to
take effect, you need to stop and restart Oracle Application Server.
2-4 Oracle Application Server Adapter for IMS/TM User's Guide
Interaction Spec Properties
Description
Specifies the interaction name to be executed.
Specifies the mode for the interaction: SYNC_SEND, SYNC_
SEND_RECEIVE, or SYNC_RECEIVE.
Specifies the time (in milliseconds) to wait for an EIS to
run the specified interaction.
See Also:
Oracle Application Server Adapter Concepts Guide

Advertisement

Table of Contents
loading

Table of Contents