-->
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 question
PostPosted: Tue Oct 21, 2003 8:20 am 
Senior
Senior

Joined: Tue Oct 21, 2003 8:15 am
Posts: 186
(I first posted this to the beginners group, but I realize it fits better here... sorry)

It seems that most people use Hibernate within an J2EE server. In my case, I wish to use Hibernate / Sybase in a multithreaded Java server which is called by means of 1) webservices from several clients and 2) internally by the server, by several threads (i.e. when particular business events occur, etc.) Note that the WebServices server is also multithreaded.

Is Hibernate suited in this kind of setup? Is it threadsafe? What is the best way to organize Hibernate within this architecture?

Thanks for any pointers / ideas!


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 21, 2003 9:51 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 3:00 pm
Posts: 1816
Location: Austin, TX
Quote:
Is Hibernate suited in this kind of setup?

yes

Quote:
Is it threadsafe? What is the best way to organize Hibernate within this architecture?

The SessionFactory is threadsafe; the Session is not. No more than a single thread (or its children) should access the Session. Normally, this is not an issue, as a Session is opened to handle each incoming request.


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.