Forums Register Login

start tomcat dynamically

+Pie Number of slices to send: Send
i have a requirement to start tomcat server within my code. how can check either tomcat is started or not, and if not then i will start it? i tried r.exec("c:\\jakarta-tomcat-4.0.2\\bin\\startup.bat"), but i got some message from tomcat to set the path for catalina_home. but, when i tried r.exec("set CATALINA_HOME=c:\\jakarta-tomcat-4.0.2"), i got some error message.
+Pie Number of slices to send: Send
You may try this..
try {
Socket s = new Socket("hostname",8080);
}
catch(ConnectException ioe) {
//put your code to start tomcat here
}
I'm sure this not the best answer, but one of the possibilities
HTH
--
Venkat
+Pie Number of slices to send: Send
great idea...
but, still stuck on how to run tomcat dynamically......
can anyone tell how?..
+Pie Number of slices to send: Send
This doesn't belong here. Moving it to the apache forum...
Kyle
What are you doing? You are supposed to be reading this tiny ad!
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 708 times.
Similar Threads
Out of Environment Space in win98
configuring tomcat in win98
Bad command or file name
start tomcat dynamically
Help on installing Tomcat
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 19:55:52.