posted 12 years ago
Hi,
I have an JMS application, the requirement is like read message from a JMS queue and do some operation,if that operation fails put the message back on queue and process again after some time(like after 5 mins or 10 mins). I have to retry processing the same message say 3 times in an hour time,but what is happening is once I process and put back the message on queue the state of message gets "Locked" so it won't allow to retry after 5 0r 10 mins. Does anybody knows why the message getting locked on queue and how to resolve these kind of issues?
I am closing all open resources like session,transaction etc related to queue connection.
Following is code snippet for reference -
Putting back message on queue -
Receiving message from queue -
Thanks in advance.
Vighnesh.