wood burning stoves 2.0*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 15959
    
  19

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: 15959
    
  19

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: start/stop tomcat
 
Similar Threads
Need help: Tomcat in Ant
Back end process
catalina.out log shows all classes being loaded - why?
Starting and Stopping Tomcat Server Using Ant Script
Debug J2EE appl in Eclipse