-->
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: Startup times for multithreaded SessionFactory instances
PostPosted: Mon Jun 26, 2006 7:48 pm 
Newbie

Joined: Mon Jun 26, 2006 7:27 pm
Posts: 1
Hibernate version: 3.1.2

Hi,

My non-managed application needs to access two databases simultaneously. I've set up two threads, one for each database target, with separate Hibernate configurations and SessionFactory instances.

Upon startup, the two Configuration instances overlap nicely with no serious time penalty. However, the two SessionFactory instances seem to block each other -- the startup time for both SessionFactory.buildSessionFactory() calls in two threads is nearly the same as when it's all in one thread.

Is this expected behavior? Can I get two SessionFactory instances built without paying the startup time penalty twice?

Thanks!


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 26, 2006 9:10 pm 
Senior
Senior

Joined: Sun Jun 04, 2006 1:58 am
Posts: 136
why are you so bothered about startup times ??

Are you bother about unit tests taking longer or stuff like that.

_________________
Don't forget to rate


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.