-->
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: thick client (NON-webapp) best practices?
PostPosted: Thu Oct 13, 2005 6:36 pm 
Beginner
Beginner

Joined: Wed Dec 31, 2003 1:40 pm
Posts: 25
Hi,

we are developing a stand-alone thick client application with Hibernate that talks directly to the database. It's Model View Controller, and the model objects are of course persistent through Hibernate. All objects are displayed for a long time on the user's screen, and the user may navigate around in them as needed. So you get all those issues with lazy loading and detached objects.

This whole issue with the extent of sessions and transaction is really different in such a design as it is with web apps. I've been searching high and low for discussions specific to this scenario, but no such luck.

Any links to best practices for thick client designs?

thanks,
-Gunther


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 17, 2005 6:57 pm 
Expert
Expert

Joined: Thu Jan 08, 2004 6:17 pm
Posts: 278
http://www.hibernate.org/42.html

http://members.capmac.org/~orb/blog.cgi/tech/java/Seam__first_impress.html

Actually webapps and rich clients have quite a lot in common. We are using the session-per-conversation pattern (keep a single Session with the objects being edited in the rich client; keep the Session disconnected during user think time; when pushing changes to the database, connect the Session, open a transaction, save the changes, commit, and disconnect again).

Here's another thread on how to handle versioning issues in this situation: http://forum.hibernate.org/viewtopic.php?p=2266139#2266139

Cheers!
Rob


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.