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?
|
|