In very short: I need a JSP to display data that is kept in a DB (actually so far only META tags (HTML HEAD...)) but they change very rarely there... so I made custom JSP tag that returns correct data by matching requesting page's URL to data in a HashMap...
The only thing now is how to properly implement the 'cache' class that pulls/refreshes the data from the DB say every 60 minutes? (it's ran on multiple servers/load balanced, should be well architected for scalability and performance...)
The 'cache'/pulling class: I need _something_ (like EJB/Servlet) [Question 1: suggestions on what _it_ should be?] to start when the server starts (preferably when it starts VS first request to the resource) [Question 2: how to start it?]
Once started it pulls some data from DB into a HashMap/ArrayList and continuously pulls data once every 60 minutes from the DB - I should have a thread I guess? [Question 3: best way to implement this?]
And a custom tag class should pull the HashTabe from the above component every time a JSP page requests it...
Suggestions on the architecture?
Any tips, tricks, links, suggestions are much appreciated
Thank you all...
By Kit Mendelson in forum Java
Last Post: 04-24-2001, 05:09 PM
Last Post: 03-02-2001, 02:42 PM
By Rob Biernat in forum authorevents.pekowsky
Last Post: 08-15-2000, 08:05 PM
By Siva Sankar in forum Java
Last Post: 07-13-2000, 12:50 AM
Last Post: 04-07-2000, 01:20 PM
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center