You can change your execution timeout from the default time.
executionTimeout is a property of the IMSInteractionSpec class.
The execution timeout value that you set is converted to a value that IMS™ Connect
uses. This conversion occurs to meet the requirements of IMS Connect. Important: Other
timeouts can affect your interactions. If other timeout values are less than
the execution timeout value you set for your IMS interaction, these other timeouts can
mask the fact that IMS did not return a response. For a discussion of how
these timeouts can affect each other, see Other timeouts.
You
can provide a value for the executionTimeout property of an IMSInteractionSpec
class in one of two ways:
- Using an IDE such as IBMs Rational® Application Developer (RAD)
with the optional J2EE Connector Architecture (J2C) feature
- Using the setExecutionTimeout method
With the first method, using RAD for example, you can set the execution
timeout value when you initially define the IMS binding properties for a new J2C Java™ Bean.
To
edit the IMS binding
properties that are already defined in RAD for a new J2C Java Bean,
complete the following steps:
- Open the appropriate IMS Java binding using the Java Editor.
- Locate the doclet tag for the IMSInteractionSpec class.
- Modify the doclet tag to add executionTimeout property, if it is not listed
and specify a value for it. If it is listed, modify the value.
- Close the editor and click Yes to save your changes.
Note: You can also code individual timeout values for different interactions
using the method described in Exposing the executionTimeout property of the
IMSInteractionSpec and Using the setExecutionTimeout method. If you code
an execution timeout value in your Java client application code, that value
overrides any execution timeout value that you set in the IMS binding properties
of your J2C Java Bean.
With the second method, you
can use the setExecutionTimeout method to set an execution timeout value in
a CCI application. To use the setExecutionTimeout method, you need to instantiate
a new IMSInteractionSpec or obtain the IMSInteractionSpec from your specific
interaction. Then, set the executionTimeout value using the setExecutionTimeout
method provided by the IMSInteractionSpec class. For example:
interactionSpec.setExecutionTimeout(timeoutValue);
After
you set the executionTimeout value for the IMSInteractionSpec, assign this
interactionSpec to the specific interaction.