Syntax for Rejection Policy field in CLI script for Thread Pool Resource Template creation
book
Article ID: KB0075145
calendar_today
Updated On:
Products
Versions
TIBCO ActiveMatrix Service Grid
3.3.0
Description
The "Thread Pool" Resource Template has a configuration field named 'Rejection Policy'.
When creating it from Administrator GUI the possible values that can be set from the drop-down list are: 'Caller Runs', 'Abort', and 'Blocking'.
In CLI script for creating such "Thread Pool" Resource Template ("resourcetemplate_data.xml") the 'Blocking' value is set by default:
<ResourceTemplate xsi:type="amxdata:ThreadPoolResourceTemplate" name="ThreadPoolRT" description="This is Thread Pool RT" corePoolSize="2" maxPoolSize="10" keepAliveTime="30" autoStartCoreThread="false" threadPoolNamePrefix="tp" daemon="false" rejectionPolicy="Blocking" priority="5" />
Providing values as 'Blocking', 'Abort' in CLI scripts works fine.
However, providing literal representation 'Caller Runs' in CLI scripts will NOT work, and in that case the default 'Blocking' policy will be used instead.
Issue/Introduction
What is the syntax for "Rejection Policy" field in CLI script for Thread Pool Resource Template creation?
Environment
All Supported OS Platforms
Resolution
The correct syntax for specifying 'Caller Runs' rejection policy in CLI scripts is 'CALLER_RUNS', i.e., with an underscore ("_") rather than a whitespace between "CALLER" and "RUNS".