-->
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: extended session
PostPosted: Sun Aug 02, 2009 12:11 am 
Newbie

Joined: Mon Jan 17, 2005 5:43 am
Posts: 13
Location: Macau
Hi,

The Hibernate reference recommends extended session over open session in view. This is understandable as it eliminates the need to deal with detached entities. However, how does one keep the extended session available? The reference recommends storing it in an EJB stateful session bean and advice against storing it into the web session. Why? Is it because stateful beans support passivation for reducing the memory load?

In addition, no matter an EJB stateful session bean or the web session is used, due to replication, the session and all the entity instances in it must implement Serializable, right?


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.