PDA

View Full Version : editing external configuration



mini
06-20-2006, 11:17 PM
I'm using a external spring configuration file like



<resource uri="~/SpringConfig/Master.xml"/>


I expected that chaing the file cause refreshing the configuration contents.

But it didn't until when I touched web.config or rebuilt the web project.

Is this the intented?

It is or not, if I want to reload the contents as web.config do, what operations should I do?

Putting it to the /Bin directory seems work. But I don't want to mix various dlls and configs.

Bruno Baia
06-21-2006, 08:53 AM
Hi mini,

There is no file watchers atm, you need to change the Web.Config to take changes into account or call manually the Refresh method :


((IConfigurableApplicationContext) ContextRegistry.GetContext()).Refresh();


There is a topic about it here :
http://forum.springframework.net/showthread.php?t=319


-Bruno