Return-Path: X-Original-To: apmail-incubator-cloudstack-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-cloudstack-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 72541FE0C for ; Wed, 20 Mar 2013 14:28:22 +0000 (UTC) Received: (qmail 96351 invoked by uid 500); 20 Mar 2013 14:23:41 -0000 Delivered-To: apmail-incubator-cloudstack-dev-archive@incubator.apache.org Received: (qmail 86578 invoked by uid 500); 20 Mar 2013 14:23:18 -0000 Mailing-List: contact cloudstack-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cloudstack-dev@incubator.apache.org Delivered-To: mailing list cloudstack-dev@incubator.apache.org Received: (qmail 79386 invoked by uid 99); 20 Mar 2013 14:18:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Mar 2013 14:18:32 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of Murali.Reddy@citrix.com designates 203.166.19.134 as permitted sender) Received: from [203.166.19.134] (HELO SMTP.CITRIX.COM.AU) (203.166.19.134) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Mar 2013 14:18:27 +0000 X-IronPort-AV: E=Sophos;i="4.84,877,1355097600"; d="scan'208";a="1537200" Received: from sinpex01cl02.citrite.net ([10.151.46.33]) by SYDPIPO01.CITRIX.COM.AU with ESMTP/TLS/AES128-SHA; 20 Mar 2013 14:18:02 +0000 Received: from SINPEX01CL01.citrite.net ([169.254.1.187]) by SINPEX01CL02.citrite.net ([169.254.2.203]) with mapi id 14.02.0342.003; Wed, 20 Mar 2013 22:17:59 +0800 From: Murali Reddy To: Kelven Yang , "cloudstack-dev@incubator.apache.org" Subject: CLOUDSTACK-1568, CLOUDSTACK-1664: Fix ActionEvent interception and optimize @DB lookup with caching Thread-Topic: CLOUDSTACK-1568, CLOUDSTACK-1664: Fix ActionEvent interception and optimize @DB lookup with caching Thread-Index: AQHOJXW5s1KIMShAbU6ABqw+uuYzMw== Date: Wed, 20 Mar 2013 14:17:58 +0000 Message-ID: In-Reply-To: <20130319011420.140F73936D@tyr.zones.apache.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.2.5.121010 x-originating-ip: [10.151.60.9] Content-Type: text/plain; charset="us-ascii" Content-ID: <0CB2F6CB81E981479E44A63DAB571CAF@citrix.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org Kelven, I see that you fixed action event issue in below commit. But I am still running into some issues. While working on CLOUDSTACK-1673 I noticed that in case of AccountManagerImpl, there are multiple methods with same name. So in that case getAnnotation on the method is returning null even though there is ActionEvent annotation. If I rename method then action event annotation works fine. You can repro it by creating user (there are two createUser methods in AccountManagerImpl). I looked at ComponentMethodProxyCache to see if I can figure the problem but with no luck. If you get a chance please try once. On 19/03/13 6:44 AM, "kelveny@apache.org" wrote: >Updated Branches: > refs/heads/master d9b85e397 -> fb94b7221 > > >CLOUDSTACK-1568,CLOUDSTACK-1664: Fix ActionEvent interception and >optimize @DB lookup with caching > > >Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo >Commit:=20 >http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/fb94b72 >2 >Tree:=20 >http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/fb94b722 >Diff:=20 >http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/fb94b722 > >Branch: refs/heads/master >Commit: fb94b72213bf96f2878b90260067f61629c6a956 >Parents: d9b85e3 >Author: Kelven Yang >Authored: Mon Mar 18 18:05:09 2013 -0700 >Committer: Kelven Yang >Committed: Mon Mar 18 18:07:52 2013 -0700 > >---------------------------------------------------------------------- > .../com/cloud/event/ActionEventInterceptor.java | 15 ++- > .../ConsoleProxyHttpHandlerHelper.java | 14 ++- > .../utils/component/ComponentMethodProxyCache.java | 90 +++++++++++++++ > .../utils/component/SpringComponentScanUtils.java | 1 - > .../cloud/utils/db/TransactionContextBuilder.java | 14 +-- > 5 files changed, 119 insertions(+), 15 deletions(-) >---------------------------------------------------------------------- >