Hello all,
I have a problem and I don't know the best way to do that.
The context: I have a webapp where I save, delete, update "server" and "user" from my webapp
in a file under /WEB-INF/classes/datafile.xml
Imagine I log me on the webapp as "administrator/administrator" (login/password), after that I
modify server informations then the webapp rewrite my datafile.xml under /classes in order to
update the modified informations for one server.
But when the datafile.xml is rewritten the web server reload the context and when the
web application being reloaded, all sessions are delete so requiring users to identify themselves again.
Anyone know the best practice for this case ?
I have found session-time out parameter in web.xml, but in this case it isn't a timeout ...
I have also found this "reloadable" attributes in
tomcat configuration:
<Context docBase="myapp-ui" path="/myapp-ui" reloadable="true" source="org.eclipse.jst.j2ee.server:myapp-ui" debug="0">