Hi Bruce,
Many thanks for the quick response.
I tried by setting 120ms as suggested, below is my analysis after changing the value -
Please have a look into the time details at which the exception is occurred while processing 1000 messages with the timeout of 10000ms --
JMSTimestamp 2010-10-29 11:56:28.928 +0530
JMSTimestamp 2010-10-29 11:57:45.353 +0530
JMSTimestamp 2010-10-29 11:58:17.138 +0530
JMSTimestamp 2010-10-29 11:59:01.164 +0530
JMSTimestamp 2010-10-29 11:59:45.753 +0530
JMSTimestamp 2010-10-29 12:00:27.843 +0530
JMSTimestamp 2010-10-29 12:00:39.949 +0530
JMSTimestamp 2010-10-29 12:01:07.264 +0530
Please have a look into the time details at which the exception is occurred while processing 1000 messages with the timeout of 120000ms --
JMSTimestamp 2010-10-29 12:16:18.444 +0530
JMSTimestamp 2010-10-29 12:20:22.169 +0530
JMSTimestamp 2010-10-29 12:23:07.563 +0530
By looking the above details, I observed that the message processing is happening for the amount of time mentioned in time-out and being hanged for the time mentioned in time-out property in the code at the point where directory listing is happneing. After hanging for amount of time-out period an exception message is thrown "java.net.SocketTimeoutException: Accept timed out".
Please correct me if my analysis is wrong and suggest me how to solve this problem?
Thanks and Regards
aparnmu