[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
RE: [aspectj-users] Running aspectj on application server
|
Hi Lim,
If your code calls a method in a 3rd party jar :
"Call" involves weaving into *your code* where the call was made
"Execution" involves weaving into the *3rd party code* where the
method is run
HTH,
Fintan
-----Original Message-----
From: aspectj-users-bounces@xxxxxxxxxxx
[mailto:aspectj-users-bounces@xxxxxxxxxxx] On Behalf Of Choon Chern, Lim
Sent: 02 August 2006 02:51
To: aspectj-users@xxxxxxxxxxx
Subject: 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
_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users
* ** *** ** * ** *** ** * ** *** ** *
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed.
Any views or opinions presented are solely those of the author, and do not necessarily represent those of ESB.
If you have received this email in error please notify the sender.
Although ESB scans e-mail and attachments for viruses, it does not guarantee
that either are virus-free and accepts no liability for any damage sustained
as a result of viruses.
* ** *** ** * ** *** ** * ** *** ** *