[jboss-user] [EJB/JBoss] - Re: hotdeployment error (org.hibernate.cache.CacheException)

timecop12 do-not-reply at jboss.com
Mon Nov 13 18:29:29 EST 2006


Just a little workarround: Write a struts action or something with following code

MBeanServer server=MBeanServerLocator.locateJBoss();
  | TreeCacheMBean cache;
  | cache=(TreeCacheMBean)MBeanProxyExt.create(TreeCacheMBean.class, "jboss.cache:service=EJB3EntityTreeCache", server);
  | if (DEBUG) LOG.debug("CacheMode: " + cache.getCacheMode());
  | if (DEBUG) LOG.debug("CachedEntries: \n" + cache.printDetails());
  | if (DEBUG) LOG.debug("my entities in cache: " + cache.exists("/my/package"));
  | cache.remove("/my/package");
  | if (DEBUG) LOG.debug("my entities in cache after reset: " + cache.exists("/my/package"));

Now, you're able to clear the second level cache manually.

If somebody knows a possibility to do this automatically at redeploy - please reply.

cya chris

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985644#3985644

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985644

More information about the jboss-user mailing list