Hai,
I am using JndiBoundTreeCacheProvider for second level cache with jndi name "jbosscache". I have table called Employee there i have configure cache usage as "read".At very first time i get the employee details its fetching from database, then its fetching from the cache. i can view this by Cachelistener added to the TreeCache object.
I am able to get the cache object as .,
Code:
Environment env = new Environment();
Context ctx = env.getInitialContext();
TreeCache cache = (TreeCache) ctx.lookup("jbosscache");
Is it possible to get the employee object that have employeeID-- 100 from this cache....? In hibernate.cfg.xml
Code:
<property name="hibernate.cache.provider_class">org.hibernate.cache.JndiBoundTreeCacheProvider</property>
<property name="hibernate.cache.jndi">jbosscache</property>
pls urgent...
Thanks in advance.
Regards,
Bala.