Threading Policy

Threading policy timeout values are set in TIBCO Business Studio™ before deployment. Earlier, you could not modify these values during or after deployment time. To handle certain use cases, a new functionality has been provided that enables specific modifications to update the timeout values. The timeout values must be specified in milliseconds. This is enabled through a set of modifiable system properties. The syntax for these properties is java.property.<prefix>.invocationTimeoutInMilliseconds for changing timeout values at run time. The value of the prefix determines the granularity at which the timeout values are applied.

Properties can be changed directly through the ActiveMatrix Administrator GUI or by setting them in the node’s TRA file for the node on which the application is deployed.

Possible Values of Prefix

The possible values for <prefix> are:

  • <applicationName>: applicable for all threading policies inside the application.
  • <applicationName>.<componentName>: applicable for all the threading policies defined for a specific component inside the application.
  • <applicationName>.<componentName>.service: applicable for threading policies for all services defined inside <componentName>.
    Note: The word service is a literal.
  • <applicationName>.<componentName>.reference: applicable for threading policies for all references defined inside <componentName>.
    Note: The word reference is a literal.
  • <applicationName>.<componentName>.service.<serviceName>: applicable for threading policies defined for service <serviceName> inside the application.
  • <applicationName>.<componentName>.reference.<referenceName>: applicable for threading policies defined for reference <referenceName> inside the application.

To modify timeout values for promoted services or references that have been set at design time, you must specify the component service name or component reference name which is promoted.

Specify the timeout value using the Application-level property. For example, if the name of an Application is weatherApp, the following property can be specified for the Promoted Service or Component Service that is promoted:

java.property.weatherApp.invocationTimeoutInMilliseconds

For example, java.property.weatherApp.invocationTimeoutInMilliseconds=12000 sets the timeout value to 2 minutes.