I am developing a EJB application and plan to deploy JBoss as service. I am using MS SQL as database server. Whenever the JBoss starts earlier than the MS SQL server, it throws "createBeanClassInstanceCommand == null" exception, cause the database server is not up and any subsequent call to JBoss to instantiate the EJB returns a failure.
Can anyone please suggest a solution. I know that one way would be to make the JBoss service dependent on MS SQL, but I don't know how to do it. Thanks.