posted 12 years ago
I am creating a JMS listener application which listens on a queue. I am using TIBCO JMS
implementation and facing an issue that intermittently more than one of my listener threads
pick up a same message and that results in duplicate processing.
Here is how I am creating the connection:
Then here I am creating the listener threads with the same connection created above
Now here let us assume, 5 listener threads are created and they listen as receivers on a queue. I am seeing a behavior that
sometime more than one listener thread/receiver picks up the same message and I end up with duplicate processing? How can I
handle it through JMS configuration? Is it even possible? Or I would have to resort to some programmatic solution? Any advise
would be much appreciated. Thanks.
Cross-posted at:http://stackoverflow.com/questions/10191184/duplicate-message-processing-with-multiple-messagelistener-threads