Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 7654 invoked from network); 1 Jul 2008 19:21:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Jul 2008 19:21:57 -0000 Received: (qmail 37726 invoked by uid 500); 1 Jul 2008 19:21:54 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 37684 invoked by uid 500); 1 Jul 2008 19:21:54 -0000 Mailing-List: contact users-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Discussion" Delivered-To: mailing list users@myfaces.apache.org Received: (qmail 37673 invoked by uid 99); 1 Jul 2008 19:21:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Jul 2008 12:21:54 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_HELO_PASS,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [212.227.126.183] (HELO moutng.kundenserver.de) (212.227.126.183) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Jul 2008 19:21:01 +0000 Received: from [192.168.0.3] (e177252161.adsl.alicedsl.de [85.177.252.161]) by mrelayeu.kundenserver.de (node=mrelayeu4) with ESMTP (Nemesis) id 0ML21M-1KDlPG0iKi-0003E9; Tue, 01 Jul 2008 21:20:50 +0200 Message-ID: <486A842C.3010604@eekboom.com> Date: Tue, 01 Jul 2008 21:23:24 +0200 From: Stephen Friedrich User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: MyFaces Discussion Subject: Re: access names of called actions and beans References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V01U2FsdGVkX1+mQAx+ilDus1qgdf8kcb8wDDosfC5S5VA4S0f vmvM8wPEYTys+bmEN5E4xKvbVeR+RC1ko4IdfQHLm1P+hNUTA7 TuAajKhJ5F+CoM8NljNeusvvdagxLHo X-Virus-Checked: Checked by ClamAV on apache.org I think it's not really feasible with a servlet only, but an interceptor can easily do it. See the posts in this thread for a working example: http://seamframework.org/Community/SeamPerformanceProblemRewardingWorkaround There's a little bit more configuration to do when you are not using Seam, but not too complicated either way. Michael Heinen wrote: > What's the best approach to output the name of the called > action/actionListener and the name of the corresponding managed beans ? > > I want to use a ServletFilter to measure the times for http requests and > print out these names. > > Is there anything generic available via FacesContext? I do not want to > touch every managed bean. > > > > Or do I have to overwrite org.apache.myfaces.el.MethodBindingImpl in > order to store the names in requestscope in the "invoke" method? > > > > Michael >