my dog learned polymorphism*
The moose likes Java in General and the fly likes Logging username Using MethodInterceptor with AOP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Java in General
Bookmark "Logging username Using MethodInterceptor with AOP" Watch "Logging username Using MethodInterceptor with AOP" New topic
Author

Logging username Using MethodInterceptor with AOP

ujjwal soni
Ranch Hand

Joined: Mar 28, 2007
Posts: 403
Hi,

I am Ujjwal Soni & I have a problem in logging for my website. I have used Method Interceptor & i am unable to get from the Request or the Session object from which i can fetch the username from it. I want to know how to fetch username from the MethodInterceptor. Can you tell me how it can be, by any example.

Regards,

Ujjwal B Soni
(+919898954428)


Cheers!!!
Ujjwal B Soni <baroda, gujarat, india> <+919909981973>
"Helping hands are better than praying lips......"
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

MethodInterceptor? Can you give us some context? Which API are you using?


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
ujjwal soni
Ranch Hand

Joined: Mar 28, 2007
Posts: 403
I am using spring framework 2.0 for building my website & in logging part of my website i have used method interceptor for intercepting every call of every method but i am able to intercept the call & i am able to log methods successfully but in that username is what i am not able to get. In short i want "WHO DOES WHAT" in my log. I am using API of spring framework 2.0 .
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Ok. I'll move this to a more appropriate forum.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Logging username Using MethodInterceptor with AOP