My Database server is not stable,and I must restart it sometimes .
Every time I restart it,my web application on JBoss cannot work.
I checked the code,when the ejb's create() method is called ,it throws Exception :
javax.ejb.CreateException: Error checking if entity exists:java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Connection reset by peer: socket write error
then I had to restart the jboss server and incrupt the custom's browse and transaction.
So I ask the question:How to keep the Jboss server working well in this situation?