-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Help with audit logging - getting userid from HttpSession???
PostPosted: Wed Sep 06, 2006 7:06 pm 
Newbie

Joined: Tue May 02, 2006 5:16 pm
Posts: 3
Hello all,

I'm a newbie to Hibernate, so I'm hoping this is an easy problem.

Basically, I have a web application that uses Tapestry, Spring and Hibernate (v3.1).

I have an event interceptor that gets called on every save-update event for audit logging. I am able to log everything except the user_id, which is stored as an attribute in the httpsession. The presentation layer takes care of storing the user in the HttpSession, of course.

So my question basically is,

is there any way to access the HttpSession from within my implementation of the DefaultSaveUpdateEventListener (which otherwise works like a champ)?

Thanks in advance for your help!


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.