what places can I define <valve> in? actually casting request as HttpRequest seems to work fine, ((HttpRequest)request).getContext().getManager() seems to be just dandy :)
but I would still like where I can define valve, you are saying I can define it under a specific context and under the entire engine for all requests? Filip ~ Namaste - I bow to the divine in you ~ Filip Hanik Software Architect www.filip.net >-----Original Message----- >From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] >Sent: Monday, January 13, 2003 8:42 PM >To: Tomcat Developers List >Subject: Re: Valve question > > > > >On Mon, 13 Jan 2003, Filip Hanik wrote: > >> Date: Mon, 13 Jan 2003 20:00:13 -0800 >> From: Filip Hanik <[EMAIL PROTECTED]> >> Reply-To: Tomcat Developers List <[EMAIL PROTECTED]> >> To: Tomcat Developers List <[EMAIL PROTECTED]> >> Subject: Valve question >> >> hi, >> is it possible from the valve to get hold of the Manager for the >context the >> request is in? >> >> getContainer().getManager() returns null in the invoke method. >> Filip >> >> > >If the Valve making this call is associated with the Context itself, this >should work fine. If the Valve making this call is associated with an >Engine or a Host, the appropriate Context won't have been identified yet, >so getManager() will fail. Where is the Valve you are trying this from? > >Craig > > > >-- >To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>