Hello,
I'm attempting to setup a shared development server to use with a
distributed developement team. (All two of us!)
I want to allow my partner, who is doing the page design, graphics, and
JSP to "bounce" Tomcat remotely WITHOUT giving him an account on my
machine.
I've already written a simple buildServlet that updates the local copy
of our CVS project and builds it to the context directory
(webapps/our_project/). I've added the admin/reload.do Action to catch
config changes. I've set the reloadable='true' in server.xml for the
Context. Now I need to provide the ability to "bounce" Tomcat, just in
case it reloads funny.
Does anyone know of a reliable way to do this?
I've written a simple bounceServlet that uses Runtime.exec() to call a
bounce.sh script (I'm running Linux) that does a 'tomcat -stop' and
'tomcat -start'. The problem is that it work *sometimes*. There is a
race between the call to 'tomcat -stop' and 'tomcat -start'. At least,
that's my explaination.
So, does anyone have a better solution?
Nathan