I have a java program which reads messages off a queue, uses the information in the message to query a database and then write a message to another queue.
It works ok but if I have a lot of messages (ie. Over a 1000) it can suddenly start to fail and give a "Socket Connection Attempt Refused" message.
I can then restart the program and it works fine again until after a few thousand then locks.
At the moment I create a new connection to MQ - do the Put - then disconnect, for every message.
Can anyone think of a reason why it would suddenly lock up like this?
It works ok but if I have a lot of messages (ie. Over a 1000) it can suddenly start to fail and give a "Socket Connection Attempt Refused" message.
I can then restart the program and it works fine again until after a few thousand then locks.
At the moment I create a new connection to MQ - do the Put - then disconnect, for every message.
Can anyone think of a reason why it would suddenly lock up like this?