6 Replies Latest reply on Jun 9, 2011 3:52 AM by ronsen

    JBoss AS6 - Send server to sleep

    ronsen

      Hello all,

       

      i was trying out if its possible to adjust the server so that I can send an instance to "sleep" instead of shutting it down and "wake it up" again to revive it? Even though a restart option would be appreciated, is that possible?

       

      I've seen in the administration tool, that theres a restart option, but that causes my JBoss to hang instead of properly restarting.

       

      Greets,

        • 1. Re: JBoss AS6 - Send server to sleep
          peterj

          Sorry, there is no "sleep" option.

          • 2. Re: JBoss AS6 - Send server to sleep
            ronsen

            But probably any Idea how to implement such a feature? Like Halt/Sleep or anything comparable so that the server can be "revived"?

            • 3. Re: JBoss AS6 - Send server to sleep
              peterj

              Do you have Jopr (http://www.jboss.org/jopr)? That might have the ability to stop and start individual instances; it's been a while since I played with Jopr so I couldn't say for sure that it has that capability. I think that the commercial version of Jopr, JBoss Operations Network, has the start/stop capability.

              • 4. Re: JBoss AS6 - Send server to sleep
                ronsen

                Mhm, ok thanks. But i'm actually writing an application for my own needs and would like to try to implement this feature into this tool.

                The stop possibility works the same way the shutdown works, but for some reason the servers goes down by executing it. Thats why i actually try to find a way to set the server into a kind of a "stand-by" mode.

                • 5. Re: JBoss AS6 - Send server to sleep
                  peterj

                  As I stated before, there is no "stand-by" mode. What you need is a way to remtely start the app server. Is the app server running on Linux? If so, you could senf a command via ssh to start the app server. This woul probably work better if JBoos AS was registered as a service (in /etc/init.d). And actually, if you are on Windows you could set up JBoss AS as a service there also and there are numerous ways to remotely stop/start services on Windows.

                  • 6. Re: JBoss AS6 - Send server to sleep
                    ronsen

                    I had the same idea with the services, but i thought theres probably another way that has been implemented / proofed.

                    Anyway, thanks.