How can I subscribe to a batch of messages and generate the out file after receiving the entire batch?If you want to subscribe to a batch of messages and generate the out file after receiving the entire batch, complete the following steps:
1.
2. Using the subscriber, configure a subscription to the messages with the subscribeSubjectName set to "A.B" (in the FileSubscriber configuration file).
3. Set the generateFileSubjectName="A.B" in the FileSubscriber configuration file.
4.
5. After publishing the entire batch, publish a message with subjectName= "A.B", which contains the STOP field. For example.Note that this solution may not work in a multi-threaded environment. That is, if several FilePublishers are sending messages on the same subject, the above scenario will fail.
Copyright © TIBCO Software Inc. All Rights Reserved.