Sometimes, maybe infrequently, there's a decent reason to implement a small
amount of code outside of the webapp, in the container space. There are
cases where either modifying the webapp is off limits, or where it would
simplify things to implement it in container space so that it's just always
r
The person paying me :-)
I suggested a filter but he prefers a valve even though it ties that
functionality to Tomcat.
--
View this message in context:
http://www.nabble.com/Accessing-a-database-from-a-Valve-tp25673641p25685437.html
Sent from the Tomcat - User mailing list archive at Nabble.com
> From: shetc [mailto:sh...@bellsouth.net]
> Subject: Re: Accessing a database from a Valve
>
> I have been required to try and do this with a Valve.
Just for curiosity's sake, what's the source of that requirement?
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDE
Thanks for the pointers. That was my original plan but I have been required
to try
and do this with a Valve. The caching is good but I still have to read from
a
database to periodically up the list of IP addresses.
--
View this message in context:
http://www.nabble.com/Accessing-a-database-from-
Martin Gainty wrote:
> this should do it
> http://tomcat.apache.org/tomcat-6.0-doc/api/org/apache/catalina/valves/JDBCAccessLogValve.html
No it won't. Not even close.
Mark
>
> Martin Gainty
> __
> Verzicht und Vertraulichkeitanmerkung/Note de déni e
shetc wrote:
> Ah, just spotted the JDBCAccessLogValve class. I guess that will clue me in
> :-)
It won't. You want the RemoteAddressValve.
A couple of pointers you can use or ignore as you see fit:
- Use a filter rather than a valve. It is more portable.
- Cache the list of balcklisted IPs if at
Thanks Martin!
--
View this message in context:
http://www.nabble.com/Accessing-a-database-from-a-Valve-tp25673641p25673745.html
Sent from the Tomcat - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: users-u
Ah, just spotted the JDBCAccessLogValve class. I guess that will clue me in
:-)
--
View this message in context:
http://www.nabble.com/Accessing-a-database-from-a-Valve-tp25673641p25673723.html
Sent from the Tomcat - User mailing list archive at Nabble.com.
this should do it
http://tomcat.apache.org/tomcat-6.0-doc/api/org/apache/catalina/valves/JDBCAccessLogValve.html
Martin Gainty
__
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
Diese Nachricht ist vertraulich. Sollten Sie n