I am consuming messages from a JMS queue. It is very important that I consume messages in the order they are placed on the queue. Hence I am using a pool with a single thread in my client message consumption code.
I am using AUTO_ACKNOWLEDGE acknowledgement mode. Hence if an exception occurs while proessing a particular messages from the queue the message will not get dequeued.
I have configured the queue such that the client has 20 re-attempts to re-consume and successfully process the message. I have also configured the interval between re-attempts to be 2 secs.
My question is, if I fail to process a particular message and the retry interval is 2 secs will subsequent messages placed on the queue be processed - please bare in mind I am using a pool with a single thread?