-->
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.  [ 2 posts ] 
Author Message
 Post subject: Accesing session from an Interceptor
PostPosted: Wed Mar 31, 2004 2:28 pm 
Regular
Regular

Joined: Sun Oct 26, 2003 9:02 pm
Posts: 90
Hi all

Is there a way to access the session object from an Interceptor.

In my case I need to do this because I have to update an attribute with the database current time.


Top
 Profile  
 
 Post subject: Re: Accesing session from an Interceptor
PostPosted: Wed Mar 31, 2004 5:42 pm 
Regular
Regular

Joined: Mon Oct 20, 2003 3:14 am
Posts: 53
Location: Sterling, VA, USA
nestorjb wrote:
Hi all

Is there a way to access the session object from an Interceptor.

In my case I need to do this because I have to update an attribute with the database current time.


The docs show an example of how to do exactly this in an Interceptor.

You get passed in the Object, rather than a Session. You tweak the object thats being saved.

_________________
"A statistician is a mathmetician, broken down by age and sex".


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

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.