3 Replies Latest reply on Jan 31, 2013 1:42 AM by nickarls

    Startup/Shutdown Events

    graben

      Hi,

       

      is there any way to react when the jboss instance has been finished starting or starting shutdown? There might be a listener, an event or a any dependency to look after?

       

      Best

      Benjamin

        • 1. Re: Startup/Shutdown Events
          nickarls

          You can use a management client to poll for the status of the server but I'm not aware of any hooks that could just be registered. I guess the problem is that the whole boot process is that parallel that there might be a problem that the server is technically "up" while the application is still deploying so there might be noone that could listen to the startup.

          1 of 1 people found this helpful
          • 2. Re: Startup/Shutdown Events
            graben

            Well, maybe that is an enhancement worth to think about. I think it might be possible to add a startup event in org.jboss.as.server.BootstrapListener thats actually the point where admin console gets informed that startup was succesful. So why not inform someone else too? :-)

            • 3. Re: Startup/Shutdown Events
              nickarls

              Why not? Of course there is the risk that the admin console is not your normal app - it could be more subsystem-like, haven't checked.