Re: Passing control to a newly compiled servlet
Saturday, December 11, 2004 08:11 AM
Even if you could write to the deployment descriptor file, I think you would also have to update the object representing it in the servlet container, and also stop and redeploy/restart your web application, for changes to take effect.
Some servlet containers/app servers have an admin console which lets you update anything in the web app deployment descriptor on the fly (Weblogic), but others do not (I don't think WebSphere does this, etc.).
I think this is entirely an implementation-dependent thing up to the vendors, not part of the J2EE specs at all? and it can lead to complicated problems anyway, if it allows you to change things that really do need everything to be dumped and reloaded again, with stuff in parent class loaders etc. at issue....