Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 74592 invoked from network); 26 Jul 2007 19:04:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Jul 2007 19:04:15 -0000 Received: (qmail 45452 invoked by uid 500); 26 Jul 2007 19:04:03 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 45428 invoked by uid 500); 26 Jul 2007 19:04:03 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 45417 invoked by uid 99); 26 Jul 2007 19:04:03 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Jul 2007 12:04:03 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [204.127.200.84] (HELO sccrmhc14.comcast.net) (204.127.200.84) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Jul 2007 12:04:02 -0700 Received: from [192.168.1.101] (c-68-50-0-179.hsd1.va.comcast.net[68.50.0.179]) by comcast.net (sccrmhc14) with ESMTP id <20070726190341014001bsspe>; Thu, 26 Jul 2007 19:03:41 +0000 Message-ID: <46A8F007.6080405@christopherschultz.net> Date: Thu, 26 Jul 2007 15:03:35 -0400 From: Christopher Schultz User-Agent: Thunderbird 2.0.0.5 (Windows/20070716) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Execute method each request References: <11809468.post@talk.nabble.com> In-Reply-To: <11809468.post@talk.nabble.com> X-Enigmail-Version: 0.95.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Trumml, Trumml wrote: > I want to execute a method each time a request is performed to my jsf site. > The implementation for this request should remain in a jar file which is > packed into the WAR file under WEB-INF/lib directory. > I guess there is no solution to do this with a valve, because the class > (jar) for the valve must remain inside tomcat classpath I guess. Don't use a valve. Use a Filter. These were designed to be deployed as part of your application, instead of being provided by Tomcat. Look at the servlet API for javax.servlet.Filter (it's an interface). Implementing it is easy: just read the javadoc before you begin and you'll be good to go. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGqPAH9CaO5/Lv0PARAheAAJ0dRPWqCirlFGuQP2dLgla0PCwYXwCgnMLb 7tDsS/ldmm4hSeB1G9bY3N4= =xhw5 -----END PGP SIGNATURE----- --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org