• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

tomcat working as a service?

 
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I'm using tomcat as my web server. How can I make it working like a background service?
 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
wow, isn't www.google.com awesome?!

my search: http://www.google.com/search?q=run+java+program+as+windows+service

some promising results?: http://www.winwinsoft.com/goodies/RunExeSvc/ http://dcbforum.sun.com/thread.jsp?forum=8&thread=289
 
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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).]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic