-->
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.  [ 3 posts ] 
Author Message
 Post subject: Multiple Hibernate Session Factories
PostPosted: Wed Sep 20, 2006 7:48 pm 
Newbie

Joined: Wed Feb 08, 2006 5:52 am
Posts: 2
Hi All,

I have two applications, different ears which use JNDI bound session factory, each one has different name like Hibernate/TrxHibernateFactory, Hibernate/AppHibernateFactory. I want to know when they are deployed on the app server & accessed concurrently does two hibernate session factories will be created udner JNDI Tree or first one is created then agian rebinded .

thanks in advance.

*satish Ananthuni


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 21, 2006 11:41 am 
Senior
Senior

Joined: Sat Nov 27, 2004 4:13 am
Posts: 137
Why sould there be just a SessionFactory?

SessionFactory is not a singleton (you can have multiple instances of it even in one application); by the way if it were different ear files use different class-loaders...

so be sure that there will be different instances of session factory.

-----------------
don't forget the credits

_________________
don't forget to credit!

Amir Pashazadeh
Payeshgaran MT
پايشگران مديريت طرح
http://www.payeshgaran.co
http://www.payeshgaran.org
http://www.payeshgaran.net


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 27, 2006 11:15 pm 
Newbie

Joined: Wed Feb 08, 2006 5:52 am
Posts: 2
Hi Pasha,

Iam using the JNDI Bound Session Factory hence, it is like singleton there will be only one session factory & we get the current session from the session factory.

*satish


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.