Good point, Gregg. Thanks for the input. I've noticed the same thing with some servers. JBoss seems to do OK with it, so reasonable behaviour appears possible. I'll make sure to test for it.
Greg Trasuk On Thu, 2011-11-17 at 09:10, Gregg Wonderly wrote: > On 11/16/2011 9:27 PM, Greg Trasuk wrote: > > I'm pretty close to being able to host "ServiceStarter" services inside the > > container, such that the container hosts its own infrastructure (reggie, > > mahalo, outrigger, etc). Next step will be to make the security > > infrastructure > > work, then setup monitoring of a deployment directory such that > > applications > > can be dynamically deployed/undeployed (a-la Tomcat or JBoss) by copying > > them > > into the deployment directory. I'll keep you posted... Greg. > > As you are working on the deployment mechanisms and deployment detection, > think > about how to keep partial downloads from being loaded and then aborted. > Tomcat, > in particular, has a behavior that when I just scp a .war into the WEB-INF > tree, > if it scans while the copy is in progress, and then starts loading before the > copy finishes, two bad things happen; 1) the class loading aborts with an EOF > or > other error due to the .WAR file not being complete, and 2) Tomcat will > ignore > the final, complete download if it finishes cleaning up after the download > completes. You then have to either restart tomcat, or try and copy the .WAR > again. The service disappears while you straighten things out. The update > should try and provide an atomic switch between the old version and the new > version without any loss of service. > > Gregg