jQuery in Action, 3rd edition
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: 17038
    
  26

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


An IDE is no substitute for an Intelligent Developer.
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: 17038
    
  26

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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: start/stop tomcat
 
It's not a secret anymore!