Getting Ejb Sessions IDs

View: New views
3 Messages — Rating Filter:   Alert me  

Getting Ejb Sessions IDs

by rmahmood :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...
https://dev.eclipse.org/mailman/listinfo/aspectj-users

Re: Getting Ejb Sessions IDs

by Guillaume Pothier :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> 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@...
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>
>
_______________________________________________
aspectj-users mailing list
aspectj-users@...
https://dev.eclipse.org/mailman/listinfo/aspectj-users

Re: Getting Ejb Sessions IDs

by Andrew Eisenberg-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I've been holding of since I don't know EJB very well, but if you can
provide some code (or pseudo code), then I can give you some ideas
about aspectj.

On Fri, Aug 29, 2008 at 6:34 PM, Guillaume Pothier <gpothier@...> wrote:

>> 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@...
>> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>>
>>
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@...
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>
_______________________________________________
aspectj-users mailing list
aspectj-users@...
https://dev.eclipse.org/mailman/listinfo/aspectj-users
LightInTheBox - Buy quality products at wholesale price!