-->
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 with simultaneous building the SessionFactory
PostPosted: Fri Jun 01, 2012 3:29 am 
Newbie

Joined: Fri Jun 01, 2012 3:22 am
Posts: 1
Hi,

I have a problem with simultaneous building SessionFactory.
I implement the following code in different classes in individual OSGi bundles:

sessionFactory = new AnnotationConfiguration().configure("hibernate.cfg.xml").buildSessionFactory();

The bundles start in parallel and the above code is performed simultaneously.
Then the processing is suspended in all the bundles. There is no such a problem when performing these instructions only in one thread (only one bundle is started).

Do you have any ideas how to solve this problem?


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.