http://www.nabble.com/Accessing-a-database-from-a-Valve-tp25673641p25685437.html
> Sent from the Tomcat - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apac
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
> 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
bligatoire. Étant donné que les email
> peuvent facilement être sujets à la manipulation, nous ne pouvons accepter
> aucune responsabilité pour le contenu fourni.
>
>
>
>
>> Date: Tue, 29 Sep 2009 18:33:55 -0700
>> From: sh...@bellsouth.net
>> To: users@tomcat.
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
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
ourni.
> Date: Tue, 29 Sep 2009 18:33:55 -0700
> From: sh...@bellsouth.net
> To: users@tomcat.apache.org
> Subject: Accessing a database from a Valve
>
>
> Hi All,
>
> I have a requirement in which access to a web application will be controlled
> by a 'blac
le.
I was thinking of implementing a Valve for this requirement (instead of a
servlet filter). Is it possible
to query a database table from a valve and, if so, what is the usual
approach for doing this?
Thanks very much,
Steve
--
View this message in context:
http://www.nabble.com/Accessing-a-datab
10 matches
Mail list logo