1 Reply Latest reply on Aug 22, 2005 11:57 AM by bigy

    auto restart of JBoss AS

    juwe Newbie

      We want to update our WAR (or parts of it) in the JBoss AS as a task running in the same server to support "Zero-Administration". We also need to update/patch sometimes our JAR's in the servers "/lib" directory.
      We like to implement this update as follows:

      1. prepare patch files (access them via http or so and store them into some patch-directory locale to the server)
      2. call a "restart" of the server
      3. have a "hook" (service?) before the server will deploy our WAR to update the WAR with files from our patch-directory

      How can this be done using JBoss?

        • 1. Re: auto restart of JBoss AS
          bigy Newbie

           

          "juwe" wrote:
          We want to update our WAR (or parts of it) in the JBoss AS as a task running in the same server to support "Zero-Administration". We also need to update/patch sometimes our JAR's in the servers "/lib" directory.
          We like to implement this update as follows:

          1. prepare patch files (access them via http or so and store them into some patch-directory locale to the server)
          2. call a "restart" of the server
          3. have a "hook" (service?) before the server will deploy our WAR to update the WAR with files from our patch-directory

          How can this be done using JBoss?


          Probably the easiest way is to schedule a windows job. Simply make a .BAT file that does all of the work you said. Schedule it daily. A sample could look like this:

          1.) Stop jboss (run shutdown.bat -S on Jboss 4.0.2).
          2.) Copy *.jar from specific folder (that way u can deploy nightly by putting files into a folder).
          3.) Copy whatever else you need for it to run
          4.) Start Jboss (use run.bat).

          Shouldn't be that difficult...