-->
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: Long-Living (shared) Session-Level cache
PostPosted: Mon Sep 03, 2007 2:31 am 
Newbie

Joined: Fri Apr 02, 2004 2:34 am
Posts: 8
Location: Germany
Hello All,

I'm working on the 2-tier Swing multi-user application, after reading this:
http://hibernate.org/333.html
Then this
http://www.archaebacteria.net/?p=7
and
http://forum.java.sun.com/thread.jspa?t ... ID=4080321

It was clear for me that cache and session usage patters are not very suitable for Swing applications, but under some assumptions such as :

1. All loaded objects (Entities) are immutable
2. Hibernate is not used to modify objects in the database, it is done in the backend system.
3. GUIs are not changing data, they are only sending requests to change data in the database and then receive notifications from the backend that data was changed.

My idea was to make session-level cache long-living i.e. shared between multiple hibernate sessions, since sesison-level cache is storing real object instances therefore within it java identity is the same as database identity, and that's exactly what is required for our Swing application.

What do you think, what side-effects this decision could have? What would be the best implementation alternative for that (now I'm thinking about extending DefaultLoadEventListener#loadFromSessionCache method).

Thank you,

_________________
Br.
Renat


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.