GeeCON Prague 2014*
The moose likes Tomcat and the fly likes start/stop tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » Tomcat
Bookmark "start/stop tomcat" Watch "start/stop tomcat" New topic
Author

start/stop tomcat

sing
Ranch Hand

Joined: Nov 29, 2001
Posts: 121
Hi,
My company want an application that can start/stop tomcat just by click a button. Is this possible? if yes, how's the code to do this?
I usually start/stop in command prompt. I don't know whether is this possible.

thanks
steffy
[ September 10, 2002: Message edited by: Steffy Sing ]
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16095
    
  21

It might help if you mentioned what OS you're running Tomcat in.


Customer surveys are for companies who didn't pay proper attention to begin with.
sing
Ranch Hand

Joined: Nov 29, 2001
Posts: 121
Is not fixed. It might be in Linux or Window.
Rene Larsen
Ranch Hand

Joined: Oct 12, 2001
Posts: 1179

Where should the buttons be? On a web page or just on the Desktop?
Rene


Regards, Rene Larsen
Dropbox Invite
sing
Ranch Hand

Joined: Nov 29, 2001
Posts: 121
I will suggest in web page to company.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16095
    
  21

I think someone asked that a while back, so you migh try searching this forum. A desktop GUI icon is OS-dependent, and for Linux, desktop-dependent, but a web page is a web page and it would just need a servlet attached to it that send a shutdown signal to Tomcat.
sing
Ranch Hand

Joined: Nov 29, 2001
Posts: 121
Thanks Tim, but do you mind to show me the start/stop command that you means "signal to Tomcat"?

steffy
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

Here is a way to make a java application use an embedded instance of Tomcat. This *might* help you out, it really depends on the nature of your application.

http://www.onjava.com/pub/a/onjava/2002/04/03/tomcat.html
sing
Ranch Hand

Joined: Nov 29, 2001
Posts: 121
Thanks alot, Mike. It's really helping me. I will trying out and modify this code later.
Thank You Everyone!
steffy
 
GeeCON Prague 2014
 
subject: start/stop tomcat