Re: Accessing a database from a Valve

2009-10-01 Thread Jason Brittain
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

RE: Accessing a database from a Valve

2009-09-30 Thread shetc
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

RE: Accessing a database from a Valve

2009-09-30 Thread Caldarale, Charles R
> 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

Re: Accessing a database from a Valve

2009-09-30 Thread shetc
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

Re: Accessing a database from a Valve

2009-09-30 Thread Mark Thomas
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.

Re: Accessing a database from a Valve

2009-09-30 Thread Mark Thomas
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

Re: Accessing a database from a Valve

2009-09-29 Thread shetc
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

Re: Accessing a database from a Valve

2009-09-29 Thread shetc
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

RE: Accessing a database from a Valve

2009-09-29 Thread Martin Gainty
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

Accessing a database from a Valve

2009-09-29 Thread shetc
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