Do the licence checking at webapp startup. Either do this with an auto startup servlet, either do this with a context listener. I don't understand why you try to do a webapp specific stuff (licence checking) in a server context (a valve).
And yes, filters applies only after authentification and authorization for requested ressource. En l'instant précis du 19/03/07 12:00, Tremal Naik s'exprimait en ces termes: > I need to perform license checking before the user authenticate. > Filters filter the request only after authentication, do they? > > Thanks > > TN > > 2007/3/19, Peter Crowther <[EMAIL PROTECTED]>: >> > From: Tremal Naik [mailto:[EMAIL PROTECTED] >> > The point is I defined a Valve which performs license checking and it >> > needs to access the DB. >> >> Why not a Filter? That could then be webapp-specific. >> >> - Peter >> >> --------------------------------------------------------------------- >> To start a new topic, e-mail: users@tomcat.apache.org >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]