Thanks for the response...
I tried with the setting which you have given, But it is not loading the apps according to the setting.
Here is my problem in detail.
I have an application, which is dependent on another 3 applications running in the same JBoss server. My application has a Scheduler servlet, which will be loaded as soon as the server starts up. The scheduler will check for a network connection. I have coded the scheduler servlet in such a way that it has to try establishing a network connection until and unless the connection is established. Here is am getting the problem, If it is unable to establish the connection, the server is not loading any other applications in the server. My question is how can I make the server/application so that even if the connection is not established, other applications should be loaded in the server? My servlet keeps trying to establishing the connection.
For more clarity, am putting the code below.
This servlet will be loaded as soon as the server gets started up. I have specified <load-on-startup>1</load-on-startup> in the depl descriptor.
Now am testing the application by giving some wrong ipaddress to see how the server will behave? When the server is loading the applications, it is being stopped at this application. I know why it is being stopped, because it is trying to establish the connection indefinitely. Since it is not able to establish the connection, it is being stopped at this point. Can you please suggest a way in which I can avoid this problem? I am looking for a solution, in which the connection should happen in the background which will not affect the other apps in loading irrespective of whether the connection is established or not . I have tried with threads(daemon threads), Still am getting the same problem.
Seems it is a complex requirement. Any help would be greatly appreciated.
Thanks,
Sunil