Hi so far my list caching is going well,
I have set up a thread to monitor database changes and to update the lists
stored in the servlet context. Unfortunately, although my program is
noticing the change in the database and it is recompiling the data and
putting the new data into the context under the same name, the lists are not
being updated.
I place lists in the servletcontext via:
context.setAttribute("storeroomList",storerooms );
When the lists change I recall my cachelist method and the above line is
repeated. I thought that would replace the present list with the new one but
that is not occurring.
Is there another way I am supposed to be replacing attributes?
To test I opened up a web page populated with my list and then went to the
database and changed some values in the list. My program then caught these
changes, and repopulated the lists and then placed them in the context
again. I then opened up another window and the page was populated with the
old data.
Any help in this matter is appreciated.
Alex