Rob, thanks for the followup - I'll play around with this a bit and see if I
can figure it out. - Richard

Rob Hills wrote:
> 
> ...
> No, I wouldn't say that.  Not sure exactly where I got the following 
> from, but this is my getRequest() method from my event interceptor 
> class.  From memory, it is dependent on having the ServletContext 
> injected into the bean, but I may be wrong about that.  The key point 
> is, it works and i didn't have time to experiment with it at the time :-)
> 
>     private HttpServletRequest getRequest() {
>         return (HttpServletRequest) ((ServletRequestAttributes) 
> RequestContextHolder.getRequestAttributes()).getRequest();
>     } 
> ...
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-get-authentication-info-into-a-Spring-bean---Hibernate-interceptor-tp15247474s2369p15273461.html
Sent from the AppFuse - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to