Configuring Multiple Adapters
2-4
Oracle Application Server Adapter for IMS/TM User’s Guide
2.
Create a
Connection
object using the selected
ConnectionFactory
. A
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.
3.
Create a
Connection
object using the selected
ConnectionFactory
. Specify
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:
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);
4.
Invoke the
execute
method on the interaction to initiate a call to the EIS. Pass
any data for the interaction as input and output records.
5.
Once the interactions have been processed, close the
Interaction
and
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.
Table 2–2 Interaction Spec Properties
Property
Description
name
Specifies the interaction name to be executed.
verb
Specifies the mode for the interaction:
SYNC_SEND
,
SYNC_
SEND_RECEIVE
, or
SYNC_RECEIVE
.
timeOut
Specifies the time (in milliseconds) to wait for an EIS to
run the specified interaction.
See Also:
Oracle Application Server Adapter Concepts Guide
Содержание B31003-01
Страница 6: ...vi ...
Страница 32: ...Resolving Specific Errors 3 18 Oracle Application Server Adapter for IMS TM User s Guide ...
Страница 48: ...Transaction Support 5 12 Oracle Application Server Adapter for IMS TM User s Guide ...
Страница 76: ...Configuring Oracle Connect 6 28 Oracle Application Server Adapter for IMS TM User s Guide ...
Страница 83: ......
Страница 84: ...Metadata for the Back end Adapter A 8 Oracle Application Server Adapter for IMS TM User s Guide ...
Страница 106: ......
Страница 108: ...Defining the Language and Codepage D 4 Oracle Application Server Adapter for IMS TM User s Guide ...
Страница 112: ...Index 4 ...