posted 17 years ago
Hi
I have a number of tables in my datasource, where the contents of some of the fields will not change (the fields in question essentially enforce constraints on data entry into related tables). Rather than do endless round trips to the database, I would like to cache this information while WebSpahere starts, as opposed to loading the cache when a service that relies on the cached data is invoked for the first time.
Can you suggest pointers on this?
I've looked at extending the CacheableCommandImpl class to acheive this, but I think that this still relies on an initial invocation - I want the server to load this data at start-up. Once it's cached I'll need to write an application layer interface to retrieve this static data.
Any help would be gratefully received.