Any call to this.method() will not process @ActionEvent annotation.  That is 
expected after the spring changes that were done.  There's no change that can 
be done to change that behavior, it's just how spring AOP work because it's 
proxy based.

If you want @ActionEvent to be processed you must cross beans, or just 
programmatically record the action event.

Darren

On May 7, 2014, at 1:57 PM, "Alena Prokharchyk" 
<alena.prokharc...@citrix.com<mailto:alena.prokharc...@citrix.com>> wrote:

Kelven/Darren,

While working on the fix for  CLOUDSTACK-6595, I’ve noticed that the methods 
annotated with @ActionEvents sometimes don’t generate the events. It happens 
when the annotated method is called within the same manager. When its called 
from another manager, the event is generated and inserted to cloud.events 
table. Kelven said its related to the Spring changes done by Darren.

Can you please take a look at it? Kelven, I’ve reassigned CLOUDSTACK-6595 to 
you (fix has to be submitted to 4.4-forward first, then cherry-picked to 4.4)

-Alena.

From: Alena Prokharchyk 
<alena.prokharc...@citrix.com<mailto:alena.prokharc...@citrix.com>>
Date: Wednesday, May 7, 2014 at 1:53 PM
To: Daan Hoogland <daan.hoogl...@gmail.com<mailto:daan.hoogl...@gmail.com>>, 
"dev@cloudstack.apache.org<mailto:dev@cloudstack.apache.org>" 
<dev@cloudstack.apache.org<mailto:dev@cloudstack.apache.org>>
Subject: [ACS44] Cherry pick for CLOUDSTACK-6595

Daan, can you please cherry-pick the commit to 4.4 branch:

commit b9284db857cd001e75926cb7c49b6aff4ab63695
Author: Alena Prokharchyk 
<alena.prokharc...@citrix.com<mailto:alena.prokharc...@citrix.com>>
Date:   Wed May 7 13:44:26 2014 -0700

    CLOUDSTACK-6595: call expunge method marked with @ActionEvent from expunge 
thread context. So the action even EXPUNGE.VM is generated when vm is expunged 
by the thread.

Thank you,
Alena.

Reply via email to