-->
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: many sessionFactory
PostPosted: Wed Mar 17, 2004 4:15 pm 
Beginner
Beginner

Joined: Tue Oct 07, 2003 4:32 pm
Posts: 36
Location: S
Am I able to create many sessionFactory in the same *.cfg.xml ?


If I can so How I can to reference each one in :

Code:
sessionFactory = configuration.buildSessionFactory();



Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 17, 2004 5:51 pm 
Newbie

Joined: Sun Dec 28, 2003 4:35 pm
Posts: 13
I never tried it, but doesn't

Code:
SessionFactory sessionFactory1 = configuration.buildSessionFactory();
SessionFactory sessionFactory2 = configuration.buildSessionFactory();


work?

Just curious: What is the advantage if you have different session factories?

Salut, Thomas


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.