At 09:53 24/2/01 -0800, Ram C wrote: >Just curious how Tomcat achieved this? Does it use any native API? I >couldn't find any...
I think the location for it is jakarta-tomcat-4.0/service. It uses native JNI API to do it and the service just has to implement a interface with three methods or so (start()/stop()/restart()). I would do it here but I don't have a native copmiler at hand ;) >For now I'm using the 'nohup' workaround, but it >will be nice to have this implemented in a solid server framework like >Avalon. agreed. Cheers, Pete *-----------------------------------------------------* | "Faced with the choice between changing one's mind, | | and proving that there is no need to do so - almost | | everyone gets busy on the proof." | | - John Kenneth Galbraith | *-----------------------------------------------------*
