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 ?
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.