If you use JBossCache as MBean-Service and put Objects into it that have been 
loaded by the EJB-classloader from the ejb-jar, than you'l get a 
ClassNotFoundException as soon you try to access the previously stored objects 
after redeployment of your ejb-jar. This is because classes being loaded by the 
previous deployment are no longer accessible from the new EJB-classloader after 
redeployment.

If this is an issue for you, you better go with a startupservlet that stops the 
local cache-instance on undeployment of your EAR.

Or you put the classes in question somewhere in all/lib or system-classpath or 
so they don't get redeployed.

Or you implement a treecachelistener that is notified by some startupservlet 
from destroy() so it can remove all Objects in question before shuting down the 
app.

(I'm still searching for a clean solution of this issue, will be tricky though).

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

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


-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to