Pier Fumagalli wrote: > "Costin Manolache" <[EMAIL PROTECTED]> wrote: > >> - starting a VM using exec / monitor the child process. It is not >> implemented yet in jk2 - but pretty important ( it's one of the features >> from jserv that wasn't yet ported). It seems daemon has a bit >> of code - as I mentioned from reading it I don't think it works, >> and it would be better to use the code from jserv for this - whenever >> we do implement this. > > That was the feature which created more problems in JServ... I remember me > and Ed hammering on it for months in 97/98. My hint, forget about it, also > because if you tie it to the web server process, when you take down the > Web Server, also your servlet engine is going to go down, and that's not a > very desirable feature given how much time it takes to initialize 7/8 web > applications....
I know about this - and I wasn't thinking to implement it in the same way ( i.e. have the web server directly start/stop tomcat ). The 'feature' is that all tomcat processes ( and you may run more than one in a load balanced mode ) can be started automatically and monitored. If one dies, it'll be automatically restarted. To make things interesting, this information ( and other like that ) needs to be communicated to apache servers ( to stop sending requests to not-ready servers ), and potentially to an eventual JMX proxy. This is the kind of 'control channel' that was proposed several times and will have to be implemented for other purposes. Having apache directly start/stop tomcat is not the best idea - it can just check if a 'jk2_main' process is started ( the 'communication controler' or monitor ) and launch it if not - but without stoping it if apache stops or having any further relation except normal communication. So there are separate issues - the most important beeing the startup of tocmat(s) automatically ( like jserv - but not strictly tied to apache process lifecycle ). -- Costin -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>