How do you share Java Caching System (JCS) resource across multiple EJB
I am using JCS to store the ldap search results which should be shared by multiple EJB. I have created a singleton class to initialize JCS only once but due to EJB's classloader, it's been initialized multiple times with its own copy. so search resources are not shared. How are you guys resolving issue where you need to share the cache across multiple beans? I am looking for cache within JVM. (Not the remote e.g memcached etc.). Glassfish is used as an application server. I haven't been able to test it yet, but I think that one of the techniques explained in the "Circumventing Class Loader