3 Replies Latest reply on Feb 21, 2013 5:36 AM by wdfink

    check id jboss 4.2.3 running or not

    haithamnor

      Dear All,,,

      How can i check if jboss 4.2.3 running or not programmatically,

      In another word. i would like the app or the system to notify me if this service stoped.

      thx

        • 1. Re: check id jboss 4.2.3 running or not
          wdfink

          For Linux/Unix you might surround the run script with a simple script that starts JBoss and store the PID to a file. With that PID you are able to check the JVM process.

           

          Other option is to write an application, maybe EJB or web app, and call it to see whether it is alive.

          Or write a EJB3 SingletonBean which use @PostConstruct @PreDestroy to send notifications.

           

          All this solutions might have drawbacks as you have still situations where you don't see whether the server is healthy.

          • 2. Re: check id jboss 4.2.3 running or not
            haithamnor

            Thanks wolf,

            I use windows 2003 so pls can you provide me an example COS i'm new with jboss

            Thx a lot

            • 3. Re: check id jboss 4.2.3 running or not
              wdfink

              I'm not a Windows expert and not able to write complex scripts here.

              but this comment might point in the right direction.