Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] Running aspectj on application server

For more information, see

 http://www.eclipse.org/aspectj/doc/released/progguide/apcs03.html
 http://www.eclipse.org/aspectj/doc/released/progguide/implementation.html

and more generally

 http://www.eclipse.org/aspectj/doc/released/progguide/semantics.html 

Wes

> ------------Original Message------------
> From: danny.foncke@xxxxxxxxxxxx
> To: aspectj-users@xxxxxxxxxxx
> Date: Tue, Aug-1-2006 10:54 PM
> Subject: Re: [aspectj-users] Running aspectj on application server
>
> The context changes - where you are at the moment of advice
> 
> 'execution' and you are in the called class, the class containing the
> method
> 'call' and you are in the calling class
> 
> So, as Doug pointed out,  be aware when you define you're 'call' 
> pointcuts
> that the weaver sees the calling class when the weaving is done
> 
> Danny
> 
> 
> aspectj-users-bounces@xxxxxxxxxxx wrote on 02/08/2006 03:50:59:
> 
> >
> > Hi Doug,
> >
> > Thanks for the response.
> >
> > As for a "call" and an "execution" of a method join
> > poin, I know one represents method invocation and
> > another method execution. However, if I were to have a
> > "before advice" (or any advice)  of either of them,
> > isn't that pretty much the same? I guess I can't
> > really differentiate the difference between a call and
> > an execution here.
> >
> > Thanks.
> >
> >
> >
> > --- doug.gschwind@xxxxxxxxxxx wrote:
> >
> > > Hi Mike,
> > >
> > > For an aspect to be woven into your application, the
> > > bytecode from either your code or code your
> > > application depends upon (e.g. application server or
> > > third party jar files) must be modified either at
> > > compile time or at load time. You probably want to
> > > consider compile time at first since that is the
> > > simplest way to aspect-enable an application.
> > >
> > > It is important to understand what byte code needs
> > > to modified for an aspect to be "present". For
> > > example, for call type point cuts, the AspectJ
> > > compiler must control the calling code, whereas for
> > > execution type point cuts, the AspectJ compiler must
> > > control the method being advised. While I don't have
> > > a URL handy to these details, consult the AspectJ
> > > documentation regarding what the requirements are
> > > for what bytecode must be controlled by AspectJ for
> > > your aspects to NOT be ignored.
> > >
> > > Hope that helps.
> > >
> > > Regards,
> > >
> > > Doug
> > >  -------------- Original message
> > > ----------------------
> > > From: "Choon Chern, Lim" <meteoric@xxxxxxxxxxxxxx>
> > > >
> > > > Hello everyone,
> > > >
> > > > I'm a newbie in AspectJ, and just recently, I
> > > > downloaded AJDT plugin on my RAD 6 and started
> > > writing
> > > > some tests to see how this thing works.
> > > >
> > > > I plan to incorporate aspectj into my J2EE app
> > > running
> > > > on WAS 6. What do I need to configure on the
> > > > applcation server so that the code weaving works
> > > on my
> > > > J2EE app? Currently I notice that all aspects are
> > > > ignored when I run the app (I think because the
> > > aop
> > > > compiler is not used).
> > > >
> > > > Any helps/tips/web links would be greatly
> > > appreciated.
> > > >
> > > > Thanks.
> > > >
> > > > Mike
> > > >
> > > > __________________________________________________
> > > > Do You Yahoo!?
> > > > Tired of spam?  Yahoo! Mail has the best spam
> > > protection around
> > > > http://mail.yahoo.com
> > > > _______________________________________________
> > > > aspectj-users mailing list
> > > > aspectj-users@xxxxxxxxxxx
> > > >
> > >
> > https://dev.eclipse.org/mailman/listinfo/aspectj-users
> > >
> > >
> > > _______________________________________________
> > > aspectj-users mailing list
> > > aspectj-users@xxxxxxxxxxx
> > >
> > https://dev.eclipse.org/mailman/listinfo/aspectj-users
> > >
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam protection around
> > http://mail.yahoo.com
> > _______________________________________________
> > aspectj-users mailing list
> > aspectj-users@xxxxxxxxxxx
> > https://dev.eclipse.org/mailman/listinfo/aspectj-users
> 
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
> 



Back to the top