Garet/Rob,
That did the trick - thanks! The Hibernate interceptor is all working now. I
just need to fix up for the situations where a user has not logged in yet
(e.g. signing up) and I've got it all handled. I'll probably just use a
"public" user and the IP address of the request.
Thank you again - Richard


Rob Hills wrote:
> 
> Hi Richard,
> 
> Gareth Davis wrote:
>> Authentication.getPrincipal() is your friend here.
>>
> ...
> If you run a debugger over your AuditInfoListenerBean during a 
> successful login and look inside the event object that's passed in, 
> you'll find a complete user object in there somewhere - I remember 
> seeing it when I was debugging my own listener.  Don't have access to my 
> own app ATM or I'd look it up so I could be more specific :-( .
> 
> HTH,
> 
> Rob Hills
> Waikiki Western Australia
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-get-authentication-info-into-a-Spring-bean---Hibernate-interceptor-tp15247474s2369p15290224.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