Hi Been there, done that - To no avail.
Must be something else. Hermod -----Opprinnelig melding----- Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne av Ramnivas Laddad Sendt: 26. november 2008 18:08 Til: [email protected] Emne: Re: [aspectj-users] Problem with annotation pointcut in WebSpere WebSphere ships with an older version of aspectjrt.jar (in the lib directory). I wonder if that is causing the problem. You may want to try replacing it with a newer version. -Ramnivas On Wed, Nov 26, 2008 at 2:47 AM, <[EMAIL PROTECTED]> wrote: > Hi > > I have an aspect that works just fine when run in a standalone test > (JDK 1.5), but fails to work when run under WebSphere 6.1 (Also JDK > 1.5) > > Timeable.java > @Retention(RetentionPolicy.RUNTIME) > @Documented > public @interface Timeable { > > } > > TimerAspect.aj: > > public aspect TimerAspect extends BaseAspect perthis(timedExecution()) > { > > public pointcut timedExecution() : execution(@Timeable * *()); > > before() : timedExecution() { > System.out.println("Before"); > } > > before() : timedExecution() { > System.out.println("After"); > } > } > > With -showWeaveInfo -verbose -debug I get in the log > > [EMAIL PROTECTED] info successfully verified type > aa.bb.cc.TimerAspect exists. Originates from .... > [EMAIL PROTECTED] info register aspect > aa.bb.cc.TimerAspect > > So it is loading it, but it does never get applied any of the methods > I have annotated with @Timeable > > Anybody else had problems with this. Is there any other way I can out > info about what is failing. > > Hermod > * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * > * * * > > This email with attachments is solely for the use of the individual or > entity to whom it is addressed. Please also be aware that the DnB NOR > Group cannot accept any payment orders or other legally binding > correspondence with customers as a part of an email. > > This email message has been virus checked by the anti virus programs > used in the DnB NOR Group. > > * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * > * * * > > _______________________________________________ > aspectj-users mailing list > [email protected] > https://dev.eclipse.org/mailman/listinfo/aspectj-users > _______________________________________________ aspectj-users mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/aspectj-users _______________________________________________ aspectj-users mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/aspectj-users
