anyone
help?
--
View this message in context:
http://www.nabble.com/starting-and-stoppping-tomcat-tp22016214p22016214.html
Sent from the Tomcat - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: users-unsubscr
paybackorfail wrote:
Hi, I have written a web application in netbeans using java and jsp, and i am
hosting it on a server using tomcat, i need help on finding a way to start
and stop the server by the user clicking a button on a jsp page, do i have
to use the org.apache.catalina.ant.StartTask
-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
--
View this message in context:
http://www.nabble.com/starting-and-stoppping-tomcat-tp22016214p22016694.html
Sent from the Tomcat - User mailing list
I think you need to rethink your use cases here...
Exactly WHY do you need to start and stop tomcat from a button on a web
page?
Or do you really need to enable/disable some kind of function?
Generally speaking servers don't expect to be started or stopped by
their clients - well, ok,
paybackorfail wrote:
That's a good point, what if it was just an html page?
Asking a question here is not really a substitute for thinking.
How are you starting Tomcat now ?
Mark Thomas-18 wrote:
paybackorfail wrote:
Hi, I have written a web application in netbeans using java and jsp,
-mail: users-h...@tomcat.apache.org
--
View this message in context:
http://www.nabble.com/starting-and-stoppping-tomcat-tp22016214p22017314.html
Sent from the Tomcat - User mailing list archive at Nabble.com
My earlier point was that you need to think about it in a slightly
different way.
Starting and stopping the server is something that is normally done
rarely and anyway, you can't start something that is not already started
by using it to start itself!
What you should do is to add a boolean
Instead of trying to stop and start tomcat, would it help if your app used a
more functional scheduling system? For example, Quartz?
http://www.opensymphony.com/quartz/wikidocs/FAQ.html
paybackorfail wrote:
Hi, thanks for replying, my application will take some data from a website
and
Your better off setting an application scope flag of some sort. Then
have a filter check the flag before letting the request through for
processing. If the flag is set, redirect to an unavailable page.
--David
paybackorfail wrote:
Hi, thanks for replying, my application will take some data
Still no good. Some active code has to respond to a request to start
the server.
--David
paybackorfail wrote:
That's a good point, what if it was just an html page?
Mark Thomas-18 wrote:
paybackorfail wrote:
Hi, I have written a web application in netbeans using java and jsp, and
My point below was that, to start Tomcat, you usually run a startup
script, as root.
If you want to do that via a html page, then your html page must have
something behind it - on the server - that runs as root to start Tomcat.
That's not a good idea.
But basically this is besides the point.
11 matches
Mail list logo