In my application i use 20 threads for a job , where each thread calls a remote web service and updates the Oracle Db. This application is deployed in a Jboss server and at every mid night there will be jvm restart. So yesterday while this job was running jboss server got restarted and while restarting i got the error:
Once the server got restarted the job was resumed with new 20 threads , but the job got immediately stopped due to Oracle db connecection issue. Error :
............. and then
Are the db connections preoccupied by old threads?
Will this threads be destroyed after jvm restart ?
This job was working fine before jvm restart, but why this error(connection timeout) occurred after jvm restart and is there any way to fix this issue ?