1 Reply Latest reply on Jan 12, 2002 9:54 AM by davidjencks

    How to configure a DataSource to be ignored if not active

    fbiaggi

      Hi,
      we have some datasources defined in jboss, now one of these is accessed to exchange data. May be that the DS is not available during the start of JBoss. Actually, if the DS is not available, JBoss hangt at this point. Is there a way to define a timeout or something other to go away if the DS is not available ?

      Thanks

        • 1. Re: How to configure a DataSource to be ignored if not activ
          davidjencks

          2.4.3 and later have a blockingTimeout attribute that will make the XADataSourceLoader throw an exception if a connection isn't found soon enough. Alternatively, the jca based stuff (ConnectionFactoryLoader) does not try to check that it can get a connection on startup, so you wouldn't even get an exception. If you use the jca stuff, make sure minsize = 0.