Which web containers install well as a windows service?

We had a web application product for several years, and it was used by Tomcat to deploy it under Windows, as it registers as a Windows service, so it starts and stops automatically.

Now we may need more Java EE features than Tomcat provided (we were very tempted by Java EE 6 in the container), so the question is which Open Source Java EE containers work well as Windows services. Since Glassfish is the only implementation of Java EE 6 right now, it would be nice if it worked well, but I would like to hear the experience, and not just what I can read from the brochures. If not, what else do people use?


EDIT: This also applies to web containers, not just Java EE containers. We'll probably keep the necessary stack until we find the right container, and it gets Java EE 6 support.


EDIT: I want this to work as distributed. I am not interested in manual hackers, etc., but I want the installation process to handle the creation and removal of the service.


EDIT 2012: it turned out that Windows Installer for Glassfish can install as a service (requires .NET). Component Website http://kenai.com/projects/winsw . He turned out to be very reliable.

+4
source share
5 answers

We use Tomcat as a service . We also used JBoss as a service .

You can run GlassFish as a service .

It is also worth noting that most commercial Java EE containers can also function as a service. In particular, I know that all of the above can be performed as a service, since we installed them this way:

In fact, I think it will be difficult for you to find a Java EE container that cannot be started as a service, since you can always use the Java service wrapper to port any java program as a service.

Since another answer mentioned that you might also be interested in web servers running as services, it's probably worth noting that the big two of Windows, IIS and Apache can run as services.

Change Since you edited to ask about Java EE containers containing installers installing the Windows service:

There may be others, but these are the only ones I used.

+8
source

GlassFish v3 has Platform Support that can interoperate with Solaris / OpenSolaris SMF and Windows Services. As far as I know, it just works.

+4
source

I use Caucho Resin under the windows, it comes with its own service installer , which works great for me.

+3
source

We use JBoss, and it works great as a service, and there are no problems yet. We even loaded the servers using ssh acces so that we could remotely restart the services if we wanted.

+2
source

I used Glassfish (version 2) as a Windows service. Despite the fact that some work requires some work, after tuning it worked very well. We used it in a production environment, and our setup consisted of two node clusters (so we had to configure a domain and two nodes (on two different machines)).

If I remember correctly, my biggest problem was to use sc and figure out its funky escape sequences.

Another thing to watch out for: Hudson . I was always impressed with how he installs himself as a Windows service. You can see how they do it. They use Winstone as their built-in servlet engine, although, to my knowledge, it does not meet the requirements of EE 6.

+2
source

All Articles