Previously I did publish a post on how to install Glassfish V2 as a Windows service a few years ago. Things have moved on quite a bit since then and now the latest version of the server comes with a built in command to configure the domain as a windows service. There are a few short comings though. The command does not fully leverage the windows services and you still have to configure a few thing