Products | Versions |
---|---|
TIBCO ActiveMatrix BusinessWorks Plug-in for Files for Unix and Windows | - |
Not Applicable | - |
Resolution:
Description:
============
In File Adapter there is an option of selecting only 'Topic JMS trigger messages' as the 'Polling method' but there is no option of selecting 'Queue JMS trigger messages' as the "Polling method". By using the following workaround, you can configure two File Adapter Publication services (working in load balancing mode) to be triggered by topic which can work with the queue in load balancing.
Environment:
===========
All
Resolution:
==========
1). Configure the adapter Polling destination as a global variable so that two different values can be configured for the two publication services (running in load balancing mode) during the start. For example, the first as "2firstAdapter", the other as "2SecondAdapter".
2). Previously, in customer's project, trigger messages were directly sent to the file adapter with the Topic Polling destination, nothing needs to be changed in the project.
In addition, create a JMS Queue Sender(BW palette) which will send a message in the format, an example as, "fileName=001in.txt" to a destination "TriggerSender". Also, create two queueReceivers (BW palette) which would listen to the same destination "TriggerSender". So only one queueReceiver will receive the trigger at a time.
3). Append a topicPublisher(BW palette) to those two queueReceivers and set the destinationTopic as "2firstAdapter" and the other as "2SecondAdapter".
The first the JMS Queue Sender will send trigger messages to the two queueReceivers on the same subject "TriggerSender", which will then send the messages to the topicPublishers, which will in turn will send the triger messages to the two file adapter publication services (working in load-balancing mode) on the two different Topic Polling destinations "2firstAdapter" and "2SecondAdapter". In this case the file adapter will be triggered by topic which can work with the queue in load balancing.
Attachments:
==========
Refer to the two projects created for the two publication services (working in load-balancing mode) 'Queue_to_Topic_and_Pub1.zip' and 'Pub2.zip' in 'PollingMethodQueueWorkaround.zip' attached to this article.