On Mon, 11 Nov 2002, Ryan Cornia wrote:
> Date: Mon, 11 Nov 2002 16:35:25 -0700 > From: Ryan Cornia <[EMAIL PROTECTED]> > Reply-To: Tomcat Users List <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: Hot Deploy an Application in Tomcat 4.1.12? > > Is there a way to "hot" deploy a new application into tomcat 4.1.12 > without restarting? The catch is I need to setup a JNDI datasource in > the server.xml. Is there a way to do that, have tomcat recognize the new > context and create the new JNDI resource without having to do a restart. > You can do this with 4.1 (but not 4.0), because you can use the manager webapp to deploy a "context config file" in addition to, or instead of, a WAR or directory. (If you're using "/deploy" instead of "/install", you can include the context config file in the WAR at "/META-INF/context.xml" if you enable this feature in the <Host> element.) What's a "context config file"? It's a separate XML file that contains just the <Context> element, and any nested elements such as JNDI resource definitions. This also works for auto-deployment from the "webapps" directory -- see the "admin.xml" and "manager.xml" files (in $CATALINA_HOME/webapps) for examples of how this is done. > OS is linux if that makes a difference. > Works for Windows too :-). > Thanks, > Ryan > Craig -- To unsubscribe, e-mail: <mailto:tomcat-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>
