B
Bertram Hurtig
Hi, I got a J2EE (Spring MVC) application,
that reads data from an xml file.
1. Now the client wants to be able to edit this xml file
just in time, and he wants the application to notice these changes
and to reload the xml file -
How can this be done without wasting too much performance?
I would
I would like to avoid to load the xml file each time the Controller gets
called. The only ideas I have would all poll the xml file.
When polling, maybe there is a way to just poll the date when the file
has been updated the last time, and to just reload the file in this
case? (Instead of reloading the entire file each time)
Anyway, I am not even sure if the reloading thing is a good idea -
if there is a user that sees the webpage just in the time the xml file
is beeing updated, and then he does a request to data that doesn't exist
anymore, wouldn't that crash the entire page, and how could I prevent this?
Any ideas are welcome.
Thanks in advance,
Bertram
that reads data from an xml file.
1. Now the client wants to be able to edit this xml file
just in time, and he wants the application to notice these changes
and to reload the xml file -
How can this be done without wasting too much performance?
I would
I would like to avoid to load the xml file each time the Controller gets
called. The only ideas I have would all poll the xml file.
When polling, maybe there is a way to just poll the date when the file
has been updated the last time, and to just reload the file in this
case? (Instead of reloading the entire file each time)
Anyway, I am not even sure if the reloading thing is a good idea -
if there is a user that sees the webpage just in the time the xml file
is beeing updated, and then he does a request to data that doesn't exist
anymore, wouldn't that crash the entire page, and how could I prevent this?
Any ideas are welcome.
Thanks in advance,
Bertram