Yes, there is a way to overcome this issue.
You have to use a call pointcut instead of a execution pointcut, because this way you can
match who is performing the call.
So, binding the following pointcut expression to throwMultefileException advice should fix
your problem:
call(public void com.ecebs.unittest.aop.AOPUnitTestManagerBean->createObject(..)) AND
withincode(public void *->testCreateObject_MultefileException())
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4221636#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...