-->
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.  [ 4 posts ] 
Author Message
 Post subject: Can i reload mappings without restarting the server ?
PostPosted: Thu Feb 07, 2008 7:00 am 
Newbie

Joined: Wed Jan 02, 2008 7:22 am
Posts: 5
I have tried this :

path = "./hib.cfg.xml"

annCfg.configure(path);

changeContent(path);

annCfg.configure(path);

Changings don't take effects. I don't understand why the configuration doesn't change. I would like to delete the first for reloading the second. How could i change mappings (delete add) of a configuration.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 09, 2008 9:19 am 
Beginner
Beginner

Joined: Thu Jun 07, 2007 2:38 am
Posts: 28
Location: Italy, Rome
As far as I know, Hibernate does not support 'hot deployment' of mapping files. And therefore you have to restart your server.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 09, 2008 9:51 am 
Pro
Pro

Joined: Tue Jun 12, 2007 4:13 am
Posts: 209
Location: Berlin, Germany
Well, I don't know what your "server" is. If you would use JBoss and redeploy the application, the Hibernate mapping will automatically be reconfigured.

Carlo


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 11, 2008 4:14 am 
Newbie

Joined: Wed Jan 02, 2008 7:22 am
Posts: 5
I've found a solution but I don't know if it's good (it works but is there desallocation problems ???). The mapping is reloaded only if I change the name of the .cgf file. I use current time to name the file.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.