[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
Re: [aspectj-users] AspectJ loadtime weaving limitation - Aspectwerkz solution - Tomcat
|
- From: Andy Clement <andrew.clement@xxxxxxxxx>
- Date: Wed, 30 Sep 2009 10:36:06 -0700
- Delivered-to: aspectj-users@eclipse.org
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=ZzBxjC0t/pOQOadca5ggGMQntbXTbv9iqQAMqQoc3Rk=; b=EsYUL2159AkRGQB0DWSIdwECaEqNUSv88g9EOFuuB6pU0fM9MPAsdj0knGGTwyI5WU dIDmyy+9RVrHQW4rKc/0ktglt7T6HFYpCp6J2uNJCtGK+ZgoojM1lU1RUOwmMN+9r37C UB3fZyQ1EjgWuDz7tpjDkaKBhftW6Efcauz+w=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=b/XMI5uzxIExW+mh0rs360Oc0rd2Y0RJtkRkxGEzwOEV5nV6ceqcFbU0fjKlbPBWN6 KQjGBSnInRxPTrRGuWkMycXHHvKuya5AztreK7yVf47LCKmjeK8DJOVxKP73E1fsz4EB dI1xzbIG9rFgtmFXCpPWPrf6kk0yEzoZM+7Uk=
Have you tried a recent version of AspectJ? I believe this should be
working but I'm not an expert on classloaders and weavers in tomcat.
Andy
2009/9/29 Tatta, Sunder <statta@xxxxxxxxxxxxxxxxxxxxx>:
>
>
> There was a particular scenario where we saw the need to use AOP load time
> weaving but we could not accomplish what we wanted using AspectJ and
>
> were forced to resort to AspectWerkz.
>
> Case:
> We needed to apply an aspect around a method that was within a jar file. The
> caller to that method was a method from another class within the same (or a
> different) jar file.
>
> Problem:
> The application was deployed on a Tomcat Server and we used Aspectj(agent)
> to load the Tomcat container . The jar file (where we wanted the aspect to
> exist) of an application deployed onto the Tomcat Server was loaded via
> JarClassLoaded (Tomcat default behavior). The "aspecting" wasn't working
> but when the method in the jar was being called directly from any of the
> classes in the application (loaded by WebappClassLoader), "aspecting" worked
> as expected.
>
> Solution:
> We were able to overcome that limitation when we used AspectWerkz (I heard
> it hooks to all the existing class loaders except for BootstrapClassLoader).
>
> Would this issue get resolved in future versions of AspectJ as it is
> collaborating with AspectWerkz?
>
>
>
>
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>
>