0

I am starting the embedded tomcat successfully through Java program. But I am unable to stop the tomcat server. How do I stop tomcat through a Java program?.

jzd
  • 23,473
  • 9
  • 54
  • 76
pmad
  • 1,537
  • 3
  • 17
  • 20

3 Answers3

2

See: howto-embed-tomcat-6

Community
  • 1
  • 1
卢声远 Shengyuan Lu
  • 31,208
  • 22
  • 85
  • 130
0

and/or see this as well

http://onjava.com/pub/a/onjava/2002/04/03/tomcat.html

fmucar
  • 14,361
  • 2
  • 45
  • 50
0

How about a System.exec ("tomcatInstallPath/bin/shutdown.sh")

Just a sugestion, I've never tried it. I just like quick/fast/direct solutions.

Manidip Sengupta
  • 3,573
  • 5
  • 25
  • 27