-->
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: problem on designing the application
PostPosted: Tue Apr 07, 2009 2:22 am 
Newbie

Joined: Thu Mar 05, 2009 2:50 am
Posts: 14
I am using Hibernate in my application and now currently i am using Session per operation anti-pattern.

I have several threads in my application which gets created time to time and load new rows in to database. While the threads are working, i have another pages that should read the same data, I can not create same session for the threads and the user requested pages, so i get two different disjoint places where i get to read the same data, one place where data is loaded and another place where i need to read the same data, so how should i modify my anti-pattern design to another design where i can create session per request and session per thread.

Thanks and Regards
Ramakanth

_________________
Thanks and Regards


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.