Matt, That works great - easy when you know what you're doing :) Is there a convenient way to get the User object also at this point? That would give me the internal object id which is really what I want to log - the actual username can change from time to time.
Thanks - Richard mraible wrote: > > AppFuse has a RequestContextListener in web.xml that puts the Request > in a ThreadLocal (RequestContextHolder): > > http://static.springframework.org/spring/docs/2.5.x/api/org/ > springframework/web/context/request/RequestContextHolder.html > > You can get the request using: > > HttpServletRequest request = (HttpServletRequest) > ((ServletRequestAttributes) RequestContextHolder.getRequestAttributes > ()).getRequest(); > > HTH, > > Matt > -- View this message in context: http://www.nabble.com/How-to-get-authentication-info-into-a-Spring-bean---Hibernate-interceptor-tp15247474s2369p15277518.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]
