[aspectj-users] Getting Ejb Sessions IDs

2008-08-29 Thread Rashid Mahmood
Hi All,

I am working on an application where i have to record/save Ejb invocations from 
an Ejb Client Application. I tried with AspectJ LoadTime Weaving and am able to 
get some information about these invocations like Method Name, Method Arguments 
etc.

What i was looking about getting Responses(Result) from this method calls?

Most important is how can i get information like Bean Session IDs, and other 
IDs and
contextual information?

Please share your ideas and experiences

Regards   



  ___
aspectj-users mailing list
aspectj-users@eclipse.org
https://dev.eclipse.org/mailman/listinfo/aspectj-users


Re: [aspectj-users] Problem with annotation based pointcut and inner classes

2008-08-29 Thread Christian Kölle
Andrew Eisenberg wrote:
 Does this not work for you?  The call to method() in main() is where
 the advice is applied.
 

Hi

Thanks for the answer and sorry for the question in the first place.
You're right, this works fine. My problem was the result of a build
problem in our project. The subproject in question hasn't been weaved
with the aspect.

Sorry for wasting your time
Christian
___
aspectj-users mailing list
aspectj-users@eclipse.org
https://dev.eclipse.org/mailman/listinfo/aspectj-users


Re: [aspectj-users] Loadtime weaving of Ejb Calls

2008-08-29 Thread rmahmood


I didnt realize that Javax package was not included by default while
weaving.

I did it by placing weave tag inside aop.xml and included javax.ejb.* and 
now its weaving my ejb calls.

Thanx to one of previous posts.

 

rmahmood wrote:
 
 Hi All,
 
 I am working on an application where i have to intercept all the calls
 made by EjbHome and EjbObject interface from an existing J2EE
 Application(.jar or binary form).
 
 How can i do it with loadtime weaving or is there any other way to do it?
 
 Thanx for ur replies:confused:
 
 

-- 
View this message in context: 
http://www.nabble.com/Loadtime-weaving-of-Ejb-Calls-tp19161136p19219712.html
Sent from the AspectJ - users mailing list archive at Nabble.com.

___
aspectj-users mailing list
aspectj-users@eclipse.org
https://dev.eclipse.org/mailman/listinfo/aspectj-users


Re: [aspectj-users] Problem with annotation based pointcut and inner classes

2008-08-29 Thread Andrew Eisenberg
No problem at all.  :-)

On Fri, Aug 29, 2008 at 4:46 AM, Christian Kölle
[EMAIL PROTECTED] wrote:
 Andrew Eisenberg wrote:
 Does this not work for you?  The call to method() in main() is where
 the advice is applied.


 Hi

 Thanks for the answer and sorry for the question in the first place.
 You're right, this works fine. My problem was the result of a build
 problem in our project. The subproject in question hasn't been weaved
 with the aspect.

 Sorry for wasting your time
 Christian

___
aspectj-users mailing list
aspectj-users@eclipse.org
https://dev.eclipse.org/mailman/listinfo/aspectj-users


Re: [aspectj-users] Getting Ejb Sessions IDs

2008-08-29 Thread Guillaume Pothier
 What i was looking about getting Responses(Result) from this method calls?

If I understand you (and AspectJ...) correctly, that would be either
with an after returning advice
(http://www.eclipse.org/aspectj/doc/released/progguide/semantics-advice.html),
or with an around advice, using the result of proceed()

 Most important is how can i get information like Bean Session IDs, and other
 IDs and
 contextual information?

I know nothing about ejb, how do you get those from normal java code?
You can probably get them in the same way in an advice.
g


 Please share your ideas and experiences

 Regards


 ___
 aspectj-users mailing list
 aspectj-users@eclipse.org
 https://dev.eclipse.org/mailman/listinfo/aspectj-users


___
aspectj-users mailing list
aspectj-users@eclipse.org
https://dev.eclipse.org/mailman/listinfo/aspectj-users