Re: Custom Valve

2009-07-07 Thread Sumit D
Hey Chris, Thanks a lot for the detailed reply. At the moment, I have written a class that extends AccessLogValve.java. I deactivated the AccessLogValve from the server.xml and element to your for this new Extended Valve.(We wanted it at Engine level.) Works completely fine! Thanks for the clar

Re: Custom Valve

2009-07-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sumit, On 7/1/2009 4:02 AM, Sumit D wrote: > - Extend the ValveBase class, Implement LifeCycle (not obligatory) > - write invoke method implementation > - compile and create its .jar file and put it in Catalina_Home/lib > - point it using the context.

Re: Custom Valve

2009-07-01 Thread Sumit D
Thank you Chris and Chuck for your replies. I tried to write a Custom Valve but please correct me if I am wrong: when writing a custom valve, - Extend the ValveBase class, Implement LifeCycle (not obligatory) - write invoke method implementation - compile and create its .jar file and put it in Cata

Re: Custom Valve

2009-06-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sumit, On 6/25/2009 7:42 AM, Sumit D wrote: > *By "write some data in an object" I wanted to say that, when the logs are > written, * > *then and there I would like to have the same information encapsulated in an > object* > because we need to send it

RE: Custom Valve

2009-06-25 Thread Caldarale, Charles R
> From: Sumit D [mailto:sumitd...@gmail.com] > Subject: Re: Custom Valve > > by the way, I could not find META-INF/context.xml. I create from > scratch ? Yes, create it if you need one. Many webapps do not require the Tomcat-specific settings available via a element. >

Re: Custom Valve

2009-06-25 Thread Sumit D
Hi Christopher* * Thank you for your response. *By "write some data in an object" I wanted to say that, when the logs are written, * *then and there I would like to have the same information encapsulated in an object* because we need to send it to our framework. Another option would be analyzing

Re: Custom Valve

2009-06-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sumit, On 6/24/2009 10:48 AM, Sumit D wrote: > Hello All!I am trying to edit the AccessLogValve and then would > rename it to some other Valve. Presently, the AccessLogValve writes > logs, but I would like to write the same data in an object as well.

Re: Custom valve, how to change role?

2009-06-19 Thread Bruce Edge
On Thu, Jun 18, 2009 at 3:28 PM, Caldarale, Charles R < chuck.caldar...@unisys.com> wrote: > > From: Bruce Edge [mailto:bruce.e...@gmail.com] > > Subject: Custom valve, how to change role? > > > > ...or am I completely off in left field and should scrap > > this before someone gets hurt and just u

RE: Custom valve, how to change role?

2009-06-18 Thread Caldarale, Charles R
> From: Bruce Edge [mailto:bruce.e...@gmail.com] > Subject: Custom valve, how to change role? > > ...or am I completely off in left field and should scrap > this before someone gets hurt and just use securityfilter? If you really insist on differentiating internal and external requests, then qu