[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
RE: [aspectj-users] Enhancing an ejb-call with aspectj
|
Hi Michael,
I'd suggest looking at this thread from 2003 on the same topic:
http://dev.eclipse.org/mhonarc/lists/aspectj-users/msg00700.html
http://dev.eclipse.org/mhonarc/lists/aspectj-users/msg00716.html
Note that AspectJ won't let you add parameters to a method call directly, so
this thread discusses means to achieve the equivalent. I'll be interested to
know how it works for you...
-----Original Message-----
From: aspectj-users-bounces@xxxxxxxxxxx
[mailto:aspectj-users-bounces@xxxxxxxxxxx] On Behalf Of Michael Dempfle
Sent: Wednesday, October 11, 2006 5:50 AM
To: aspectj-users@xxxxxxxxxxx
Subject: [aspectj-users] Enhancing an ejb-call with aspectj
Hello,
I hope this can be done with AspectJ but I'm not sure if it's possible.
We have a struts applications that calls EJB's on our server.
Now I want to enhance the EJB call to do the following: the client calls
the EJB - I want to enhance the EJB that it
does fetch debug information from the client and on the server side
this information is written to a log file.
My idea 1 is that the stubs and skeletions would have to be enhanced
differently. In the client side I weave code in
the stub - on the server into the skeletion at runtime. But stups and
skeletions are sometime generated at runtime
itself - therefore I don't think that this works - if someone thing I'm
wrong - please tell me.
My idea 2 is to add an additional parameter to each session bean in my
system that is used by the client. On the client
I add an around advice to all calls of an ejb, add this additional
parameter there (hope this can be done) and fill
the information to this additional parameter and extract this info on
the server side.
I think I have to use solution 2 - if anyone thinks solution 1 would
work too or thinks solution 2 does not - please
let me know.
Thank you.
Michael
_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users