Configuring Multiple Adapters; Updating Configuration Information - Oracle Application Server 10.1.3.4 User Manual

Adapters for ims/db release 3 (10.1.3.4)
Table of Contents

Advertisement

Configuring Multiple Adapters

Create a Connection object using this ConnectionFactory. Specify the
3.
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 3–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/DB adapter requires an entry in the oc4j-ra.xml file as
described in

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.
3-4 Oracle Application Server Adapters for IMS/DB User's Guide
Interaction Spec Properties
Description
Specifies the interaction name.
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.
"Configuring the J2CA 1.5 IMS/DB Adapter"
Oracle Application Server Adapter Concepts Guide
See Also:
on page 3-2.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Application server 10g

Table of Contents