Name

InteractionSpec

Synopsis

An InteractionSpec is passed into the execute() methods on an Interaction, in order to specify and control the action requested of the resource. Although this interface is simply a base to be implemented by vendors, the JCA does specify a set of standard properties that an InteractionSpec should implement if it is relevant to its underlying resource. They are:

functionName

The name of the desired function to be executed on the resource.

interactionVerb

The mode of the interaction, which is one of:

SYNC_SEND

(the interaction only sends to the underlying resource),

SYNC_SEND_RECEIVE

(the interaction performs a synchronous send/receive sequence with the resource) or

SYNC_RECEIVE

(a synchronous receive is performed with the resource, no send is performed).

executionTimeout

Number of milliseconds to wait for execution of a request.

fetchSize

A hint about how many records to fetch at a time.

fetchDirection

A hint about the direction in which to fetch records.

maxFieldSize

A hint about the maximum field size desired/supported by the client.

resultSetType

A hint about what type of result set is desired/supported by the client.

resultSetConcurrency

A hint about the result set concurrency support desired/supported by the client.

                  Returned By
public interface InteractionSpec extends Serializable {
// Public Constants
   public static final int SYNC_RECEIVE ...

Get Java Enterprise in a Nutshell, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.