Thanks Ludger J this worked, looks like AspectJ is the way forward. From: aspectj-users-bounces@xxxxxxxxxxx [mailto:aspectj-users-bounces@xxxxxxxxxxx] On Behalf Of Ludger Solbach Sent: 30 October 2013 17:15 To: aspectj-users@xxxxxxxxxxx Subject: Re: [aspectj-users] AspectJ and EL if you use an execution instead of a call pointcut, the code is weaved into the method itself and not around the calls. Then it should be irrelevant, if the method is called from java code, reflectively or via EL. Are you weaving at compile time or using LTW? I'm new here too, but it may on account of classloaders. Sometimes, JSPs are rendered in different classloaders. Each classloader needs their own copy of the woven class (as I understand it). So, if you're using LTW, you'll need to ensure that all your classloaders are weaving properly. Is it remotely possible that this could help? On Wed, Oct 30, 2013 at 9:01 AM, Anthony <info@xxxxxxxxxxxxxxxxxx> wrote: Hi, I’ve just installed AspectJ and got it working as expected but I’ve come across an unexpected problem. Everything works fine except when the code is called from EL (through JSF), then it just skips the around advice that I’ve created for it. I can kind of understand why this might be happening as it seems the advice is attached the calling code as opposed the method code (inferring from AJDT behaviour), but is there any way around it? Many thanks, Anthony.
_______________________________________________ aspectj-users mailing list aspectj-users@xxxxxxxxxxx https://dev.eclipse.org/mailman/listinfo/aspectj-users
|