tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <craig...@apache.org>
Subject Re: Way to specify realms for dynamically installed apps?
Date Sat, 17 Aug 2002 20:35:49 GMT


On Sat, 17 Aug 2002, Chris Nokleberg wrote:

> Date: Sat, 17 Aug 2002 11:39:34 -0700
> From: Chris Nokleberg <chris@sixlegs.com>
> Reply-To: Tomcat Users List <tomcat-user@jakarta.apache.org>
> To: tomcat-user@jakarta.apache.org
> Subject: Re: Way to specify realms for dynamically installed apps?
>
> On Wed, 14 Aug 2002, Craig R. McClanahan wrote:
> > On Wed, 14 Aug 2002, Chris Nokleberg wrote:
> > > I'm using the new ant tasks to install and deploy web apps from
> > > ant. One of my applications needs a JDBCRealm, but there doesn't seem
> > > to be a way to supply the manager with additional bits it might need
> > > to stick into server.xml, is that right? I can add the realm at the
> > > engine level, but I'd rather not.
> >
> > In Tomcat 4.1, you can dynamically deploy a "context configuration file"
> > instead of, or along with your webapp.  Such a file can contain the
> > <Context> element, and all nested subelements, from what you would
> > normally put in server.xml, so you can indeed dynamically deploy an app
> > with a custom realm.
>
> Thanks for the tip, I am using 4.1.9.
>
> This page:
>   http://jakarta.apache.org/tomcat/tomcat-4.1-doc/manager-howto.html
> doesn't list the "config" install option.
>

Probably hasn't been updated -- check the copy of this page in the 4.1.9
release bundle <http://localhost:8080/tomcat-docs/manager-howto.html>.

> Also, it's not clear to me why there isn't a "config" option for the
> deploy task as well as install. At least, that's what the code for the
> ant tasks would imply...deploy is not documented in the javadoc for
> ManagerServlet. I can enter these things into the bug db if they're
> new issues.
>

For the deploy command, simply include your context confgiuration file in
the WAR at "META-INF/context.xml".

> -Chris

Craig


>
> --
> To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message