I have four current consumers listening to the same queue on Amazon AWS. When pulling message down from the queue, it appears sometimes the same message is consumed by two different consumers. Please see the log below:
18:01:46,515 [jmsContainer-2] DEBUG - Received message from the queue: ID:3698a927-930b-4d6a-aeca-f66922528792
18:02:12,825 [jmsContainer-3] DEBUG - Received message from the queue: ID:3698a927-930b-4d6a-aeca-f66922528792
I have a JMS container setup with 4 concurrent consumers. I have the visibility timeout set to 30s.
Since the message is received by container2, how come container3 is still able to access it?
Does JMS container do auto-acknowledgment before or after the execution of the listener method (handleMessage)?