Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

start/stop tomcat

 
sing
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 18156
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It might help if you mentioned what OS you're running Tomcat in.
 
sing
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is not fixed. It might be in Linux or Window.
 
Rene Larsen
Ranch Hand
Posts: 1179
Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where should the buttons be? On a web page or just on the Desktop?
Rene
 
sing
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I will suggest in web page to company.
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18156
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Tim, but do you mind to show me the start/stop command that you means "signal to Tomcat"?

steffy
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks alot, Mike. It's really helping me. I will trying out and modify this code later.
Thank You Everyone!
steffy
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic