Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

tomcat working as a service?

 
Jim Wang
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I'm using tomcat as my web server. How can I make it working like a background service?
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What version of Tomcat, and what OS are you using?
 
Jim Wang
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm using tomcat-3.2.1 on windows 2000 perfessional.
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure about Tomcat 3.2.1

I use Win2k, and both 3.2.1 and 4.0.1 versions of Tomcat.

If you download the exe distribution of Tomcat 4.0.1, the installer will ask if you want to install Tomcat as a service. So there is one option.

The other option is to put Tomcat in your startup group, which is a total fake-out, but at least it starts and runs when your computer does ... although only *after* you complete the login.

To run it as a true service, you would need to investigate which entries in the registry you need to make. In my former life as a VB programmer, it was a relatively easy thing to make a small dll run as a service, it was a few entries in the registry , and voila.. you had a service. But perhaps there's a lot of COM stuff being hidden by VB, and maybe to get a java app to run as a service is more difficult?
 
Dorj Galaa
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
download jk_nt_service.exe from www.apache.org
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
*smacks himself on forehead*
http://jakarta.apache.org/tomcat/tomcat-3.2-doc/NT-Service-howto.html http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.3/bin/win32/i386/jk_nt_service.exe

Thank you Dorj!
[This message has been edited by Mike Curwen (edited October 25, 2001).]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic