We have to integrate data sent by other business applications in jms mode in a JMS queue. We have one java program that waits (in a while loop) messages with one message consumer using consumer.receive method.
The message processing can take some time (up to 20 s). In order to improve througput is it better to have
multiple java process launched in parallel to consume messages
or in the same program to use multiple consumers or messagelisteners ?
Is there a risk that 2 different process consume and process the same message or a message will be delivered to only one receiver ?
What's the best option ?
Thanks a lot