I have a need to process JMS messages with speed. I have configured a JMS trigger to spin up 25 threads, which reads 10 messages at a time from a queue, using the batchTriggerSpec.
My problem is that once all messages are consumed, I need to send a notification message of that to another service, and I have no way of knowing when the service threads are finished.
I have considered using doInvoke and spinning up 25 instances that repeat until the queue is empty, but I would still like to use batchTriggerSpec in order to read multiple messages at a time. Does anyone know how to make this work?
Thanks in advance.