I have a web application installed in tomcat 5.5.20 on linux machine which
uses spring, hibernate and mule 1.4, I need to configure my application
components through XML configuration file. For this I have a Configuration
manager which reloads the XML file (comp-config.xml e.g.) and creates a
configuration object. The configuration manager uses
javax.xml.parsers.DocumentBuilder to parse and create a document out of the
xml config file.

1. when I start the web application and immediatly change the config file
without accessing configmanager (to load the configuration), the application
is able to show the changed configuration. 

2. If I start the web application and access the configuration manager for
default configuration it show me that, but when I modify the configuration
file the application gets reloaded. For this I set the "reload" option in my
context file to false, so that even I change the configuration the
application doesn't reload.

But my problem is that, in scenareo 2, reload is set to false(application
not reloaded) and if I change the configuration file or delete the file
(comp-config.xml e.g.) the configuration manager still shows the default
configuration (note. it is able to read the file even it is deleted).

Note : This appication module works fine when run as a stand alone
application.

1. how configuration manager(my application component) is able to read the
xml file even it is deleted? does tomcat loads the file in memory when xml
file is loaded in memory as a XML Document?




-- 
View this message in context: 
http://www.nabble.com/Web-application-issue-tp16296486p16296486.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to