4 Replies Latest reply on Apr 27, 2005 10:57 AM by Yevgeny Studenikin

    Can JBoss wait until the database becomes available?

    Yevgeny Studenikin Newbie

      Scenario:
      Computers where JBoss AS and the database get restarted. ?omputer with JBoss starts up first and finds no database because the computer with database has not fully started yet. JBoss displays the message:

      15:48:45,421 WARN [JBossManagedConnectionPool] Throwable while attempting to get a new connection: null

      As a result application fails to deploy. Solution: restart JBoss manually after the database has fully restarted.

      Question:
      Is there a way to configure JBoss so that it attempts to connect to the database for some time before giving up and displaying the warning? Could there be any other workaround?

      Thanks,

      Yevgeny.