2 Replies Latest reply on Feb 27, 2011 2:32 PM by Noa Drach

    DefaultDS on Oracle - JBoss Startup while DB starts

    Noa Drach Novice



      I'm working with JBoss 4.2.3.GA and java 6.


      I have set JBoss to work with Oracle as the DefaultDS and i use Java Service Wrapper to start JBoss as a service.


      I encounter the following problem:


      after i restart my Machine (1-tier) both the DB service and JBoss are starting. the problem is that during it's startup i get errors like



      INFO  org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (java.sql.SQLRecoverableException: ORA-01033: ORACLE initialization or shutdown in progress

      the problem is that JBoss doesn't overcome the errors once the DB is up.


      I set up the service wrapper to wait one minute before it starts JBoss and every thing is O.K., the problem is that I can't know for sure that the DB will take one minute and I want to know if there is a way to pause the startup until the DB is available.


      I want to stress that the problem isn't just my application as described here -  http://community.jboss.org/message/90811

      it's the entire JBoss that doesn't seem to function - queues aren't deployed, other applications ...


      your help will be appreciated