Topic
9 replies Latest Post - ‏2006-08-02T11:27:46Z by MaxMadsen
SystemAdmin
SystemAdmin
510 Posts
ACCEPTED ANSWER

Pinned topic Run the MetaStage HTTP Server (Jetty) as a Windows service

‏2003-12-23T20:13:36Z |
I just posted a zip file that wraps the Jetty server (msbrowse) and allows it to be run as a Windows service.

Several people have requested this in the past, I hope you find it useful.

Please note, it has not been tested (other than by me) and is not curretnly supported. The functionality will be introduced in a future release.
Updated on 2006-08-02T11:27:46Z at 2006-08-02T11:27:46Z by MaxMadsen
  • SystemAdmin
    SystemAdmin
    510 Posts
    ACCEPTED ANSWER

    Re: Run the MetaStage HTTP Server (Jetty) as a Windows servi

    ‏2004-01-06T13:33:21Z  in response to SystemAdmin
    Nathan ...

    This sounds interesting ... please give us a little more detail on how/why this can be used over and above the MetaStage browser.

    ... tom
  • SystemAdmin
    SystemAdmin
    510 Posts
    ACCEPTED ANSWER

    Re: Run the MetaStage HTTP Server (Jetty) as a Windows servi

    ‏2004-01-06T15:43:43Z  in response to SystemAdmin
    When you run a server application in a console window - like the current Jetty implementation - the server depends upon the console for existance. If the user that started the console window logs out, the console window closes and your server shuts down. Windows services run in the background and do not shutdown when the user logs out. This is the primary benefit of running Jetty as a service.

    -Nathan
  • SystemAdmin
    SystemAdmin
    510 Posts
    ACCEPTED ANSWER

    Re: Run the MetaStage HTTP Server (Jetty) as a Windows servi

    ‏2004-01-22T13:06:50Z  in response to SystemAdmin
    All,

    I got this installed and up and running today. It works very nicely and requires little work short of the initial set up and configuration (Which is basically the same as the non-service configuration).

    It is very nice not to leave a user logged in to the server to keep the services running.

    One note: If you are confused as to the installation, a couple of pointers:

    1. Replace the server.bat file with the with the new server.bat file
    2. Put the JavaServices.exe in the same folder as the server.bat file
    3. Set up configuration in the new server.bat file the same as if you are setting it up without the service exe.
    4. Run the server.bat file
    5. Check to see if the service is showing up in theservices console
    6. Start services

    DONE!

    Hope this helps!

    Nathan, if I missed anything or spoke incorrectly, please feel free to correct me.
  • SystemAdmin
    SystemAdmin
    510 Posts
    ACCEPTED ANSWER

    Re: Run the MetaStage HTTP Server (Jetty) as a Windows servi

    ‏2004-06-03T14:44:11Z  in response to SystemAdmin
    Where can I find the zip file and the instructions ?

    Thanks
    • Satyajeet Dhumne
  • SystemAdmin
    SystemAdmin
    510 Posts
    ACCEPTED ANSWER

    Re: Run the MetaStage HTTP Server (Jetty) as a Windows servi

    ‏2004-06-14T11:37:04Z  in response to SystemAdmin
    jetty_svc.zip in the File Library under product applications
  • SystemAdmin
    SystemAdmin
    510 Posts
    ACCEPTED ANSWER

    Re: Run the MetaStage HTTP Server (Jetty) as a Windows servi

    ‏2005-08-03T16:03:31Z  in response to SystemAdmin
    I just set up a SQL Server Agent job to run it from the command line and dump the output to a log file. Seems to work ok.
  • SystemAdmin
    SystemAdmin
    510 Posts
    ACCEPTED ANSWER

    Re: Run the MetaStage HTTP Server (Jetty) as a Windows servi

    ‏2005-11-11T18:08:33Z  in response to SystemAdmin
    Hi Aaron,
    I followed every step specified in your notes, but I just cannot get Jetty created as a service. When I ran the newly created server.bat file, I got just a flash of windows and I don't see Jetty is created as a service in Services.
    Could you shed some light as to what am I missing. Thanks.
  • SystemAdmin
    SystemAdmin
    510 Posts
    ACCEPTED ANSWER

    Re: Run the MetaStage HTTP Server (Jetty) as a Windows servi

    ‏2005-12-01T18:53:55Z  in response to SystemAdmin
    Hello,
    Can anyone else shed some light on this?
    • MaxMadsen
      MaxMadsen
      1 Post
      ACCEPTED ANSWER

      Re: Run the MetaStage HTTP Server (Jetty) as a Windows servi

      ‏2006-08-02T11:27:46Z  in response to SystemAdmin
      Leo,

      you need to use an application such as RunAsService (or ServiceInstaller.exe) to execute the File Server.BAT as a Windows service.

      Also, you'll need to modify your original Server.Bat file to avoid user logoff affecting your MS Browser availability. You must locate and change the line "set JAVA_OPTIONS=-server -Xms32m" to "set JAVA_OPTIONS=-server -Xms32m -Xrs". After that, restart the MSBRowser Windows service for changes to take effect.