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,279
  • 8
  • 53
  • 76
pmad
  • 1,367
  • 2
  • 15
  • 19

3 Answers3

2

See: howto-embed-tomcat-6

Community
  • 1
  • 1
卢声远 Shengyuan Lu
  • 30,386
  • 22
  • 82
  • 125
0

and/or see this as well

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

fmucar
  • 14,071
  • 2
  • 43
  • 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,453
  • 4
  • 24
  • 27