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

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 


Back to the top