I did one of these a while ago, long before JSR 107, on a clustered web application. :eek:
Although Ehcache is very sweet, there's nothing like a roll-your-own implementation! It's sort of like deciding you need to cross the country, but have to build a vehicle to get you there! Will it be a train, a jeep or a bicycle?
This was even before weak and soft reference Maps, so you can imagine it must have been a little dicey on memory. To get around it, we had a Listener that inspected and ejected older content.
I wrote a little article on it http://www.javazoid.com/Cache.html
Looking at it now, I'm a little confused about how it could even work... but it apparently did for a long while.
Gervase
--- On Wed, 11/18/09, David Delivante Gifford <openx...@gmail.com> wrote: