-->
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: Architecture critique welcome
PostPosted: Wed Aug 27, 2003 5:18 am 
Senior
Senior

Joined: Wed Aug 27, 2003 4:08 am
Posts: 178
Location: Wiesbaden, Germany
Hi all,

I'm not sure whether I'm going to shot me in the foot with this architecture:

I'm using DAO pattern ( the only class talking to hibernate ) and
thread local session, where I explicitely start transaction
( hibernate ) on retrieving session, anf commit / flush
while giving session back to my session manager.

In case of exception I'm rolling back transaction and close session
on the spot.

While living in swing application, I'm returning session explicitely
and while using my system in web-environment I use filter to flush / close on end of request.

Any objections? Comments?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 27, 2003 2:01 pm 
Beginner
Beginner

Joined: Wed Aug 27, 2003 8:55 am
Posts: 28
Location: Dallas, TX
I don't have any experience with Hibernate + Swing client. However, your web approach looks like the recomended approach for this environment. That is how we handle Sessions in our app server, and we have had zero problems.


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.