Controlling the number of sessions created by TIBCO BusinessWorks (BW) message producers such as JMS Queue Sender or JMS Topic Publisher.
book
Article ID: KB0086389
calendar_today
Updated On:
Products
Versions
TIBCO ActiveMatrix BusinessWorks
-
Not Applicable
-
Description
Resolution: Description: ===========
Number of sessions/producer objects created by a JMS Message Producer activity.
Environment: =========== All
Resolution: ========== The number of sessions created by message producers is controlled by the “Engine.ThreadCount” property configured while deploying the project as well as how the Message Producer activity is triggerred.
If the Mesage Producer activity is called in a loop to send multiple messages, only one job will be created to send all messages until the loop finishes execution so only one session/producer will be created and will be re-used for the subsequent send calls.
If the Message Producer activity is triggered by another starter activity (i.e., Timer) to send multiple messages, each time the starter is triggered a new job will be created thereby creating a new session/producer. However, the maximum number of sessions/producers created in this situation will be limited by the “Engine.ThreadCount” property configured while deploying the project. Once the number of sessions/producers created by the Message Producer activity hits this limit, the subsequent jobs will not create any more sessions/producers and the existing sessions/producers will be re-used by any new jobs created afterwards.
Issue/Introduction
Controlling the number of sessions created by TIBCO BusinessWorks (BW) message producers such as JMS Queue Sender or JMS Topic Publisher.