-->
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: How Hibernate can be update dynamically in OSGi environment?
PostPosted: Mon Oct 22, 2007 3:14 am 
Newbie

Joined: Mon Oct 22, 2007 2:13 am
Posts: 2
Hi, I got a problem. As we know , in traditional application hibernate works well, but how it works in OSGi environment ?

In case of OSGi environment, there are many bundles includeing Hibernate bundle and modules (bundle), each module composed by MVC,Hibernate mapping ..... then, I want plug a new bundle in system at runtime.

All i know just only one ways to implement:

1. Export Hibernate bundle, load hibernate mapping of new bundle pluged in system at runtime into Hibernate bundle, then rebuild SessionFactory, like this:

When a bundle be add into system at runtime

Configuration.configure(new_Bundle_Config_File) // load config file
SessionFactory.close() // close previous SessionFactory
Configuration.buildSessionFactory() // build a new SessionFactory

Thanks in advance


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.