Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which web containers install themselves well as a Windows service?

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

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


EDIT: This goes for web containers too, and not just Java EE containers. We will probably keep the necessary stack included until we find the right container and it gets Java EE 6 support.


EDIT: I want this to work as distributed. I'm not interested in manually hacking wrappers etc., but want the installation process to handle the creation and removal of the service.


EDIT 2012: It turned out that the Windows installer for Glassfish can install as a service (requires .NET). Component web site http://kenai.com/projects/winsw. Has proven very robust.

like image 245
Thorbjørn Ravn Andersen Avatar asked Dec 01 '22 06:12

Thorbjørn Ravn Andersen


1 Answers

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

It is possible to run GlassFish as a service.

It is also worth noting that most of the commercial Java EE containers can also run as a service. In particular, I know that all of the following can be run as a service, since we have set them up in that way:

  • Netweaver
  • WebLogic
  • WebSphere

In fact I think you would be hard pressed to find a Java EE container that could not be run as a service, since you could always use the Java service wrapper to wrap any java program as a service.

Since it was mentioned in another answer that you might also be interested in web servers running as services, it is probably worth pointing out that the big two on Windows, IIS and Apache, can both be run as services.

Edit: Since you edited to ask specifically about Java EE containers that contain installers that install the windows service:

  • Tomcat
  • JBoss
  • Netweaver
  • WebLogic
  • WebSphere

There are probably others, but these are the only ones that I have used.

like image 155
Paul Wagland Avatar answered Dec 05 '22 17:12

Paul Wagland