We are using a 3rd party library which is setting up a socket connection to listen for incoming messages from another server. We are experiencing some problems with this API and when ie the network connection goes down, the socket connection is taken down controlled and the thread dies. I have noticed that if I force the API to throw a runtimeexception the JBOSS AS is restarting the application automatically. But if the thread just dies nothing happens. I have to manually restart the application.
Is there a way to configure JBOSS to see that the thread dies and then start it automatically?