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
timeout values can affect your interactions. If other timeout values are less
than the execution timeout value you set for your IMS™ interaction, these other timeout values
can cause the interaction to expire. Other timeout values include:
- Connection timeout property of J2C connection factories
- EJB transaction timeout value
- Browser timeout value
- Servlet HTTP session or EJB session timeout values
For example, if you configure the execution timeout value to be
greater than the timeout value specified for a browser response, then the
execution timeout value is never used because the transaction timeout value
is exceeded first.
You can provide a value for the executionTimeout
property of an IMSInteractionSpec class in one of two ways:
- Using Rational Application Developer
- Using the setExecutionTimeout method
With the first method, using Rational Application Developer, 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 for a new J2C Java Bean, complete the following steps:
Note: You can also code individual timeout values for different
interactions using the method described below 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 Rational Application
Developer.
With the second method, you can use the setExecutionTimeout
method to set an execution timeout value. If you are creating a CCI application,
you will have access to the setExecutionTimeout method of the IMSInteractionSpec.
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 for the IMSInteractionSpec by 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.