I have lots of small read-only objects in my application. They are loaded from a database, and unfortunately I can't fit all of them into memory. An obvious solution would therefore be to maintain an application-wide cache.
I know JBoss caches entity beans, but are there any provisions for caching simple objects?
Of course I can just implement my one object cache, since I do not require persistance here this would be no great deal. But do you have any ideas how such a cache would best be integrated into a J2EE application, if possible without using too much JBoss specific stuff?