Get JMS Queue Message palette with dynamic selector.

Get JMS Queue Message palette with dynamic selector.

book

Article ID: KB0085632

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix BusinessWorks -
Not Applicable -

Description

Description:
Customer wants to implement Get JMS Queue Message palette to receive multiple messages at a time. They use dynamic message selectors. However, they are only able to receive only one message at a time.

Symptoms:
Customer only receives one message at a time when he uses Get JMS Queue Message palatte with dynamic message selector.

Cause:
Get JMS Queue Message Palletes does not support receiving multiple messages at a time.

Issue/Introduction

Get JMS Queue Message palette with dynamic selector.

Resolution

Currently, BW does not have a pallete to  do this function. The solution is to implement a Timer to trigger a new thread which executes the Get JMS Queue Message activity to get one message from the dynamic queue. Set the time out of the Get JMS Queue Message to be the same with the internal time of the Timer. In this way BW can guarantee that there is only one thread running on the bwengine and occupying the JMS connection resources. At the end a catch is added in the process to make sure it does not throw an error in the log but throws in the catch output. A sample project is attached. (Filename: JMS.zip).

Additional Information

TIBCO Businesswork Get JMS Queue Message document.

Attachments

Get JMS Queue Message palette with dynamic selector. get_app