[ 
http://jira.jboss.com/jira/browse/JBCACHE-90?page=comments#action_12315368 ]
     
Ben Wang commented on JBCACHE-90:
---------------------------------

There is also a more profound question regarding usage of TreeCacheAop in 
scoped class loader. What happens is that currently we store a AopInstance and 
has a refernce to the pojo. During replication, this instance is created and 
stored. However, if the pojo instance is to be accessed from different threads 
in different class loaders, the AopInstance will present a problem unless we 
marshall it. But marshalling is not very ideal in this case since we will need 
to access this all the time (like a cache, sort of).

This issue will needs to be addressed later. But the restriction is still 
reasonable. That is, a particular fqn node that is associated with the pojo is 
allowed to be accessed from one signel class loader. If you need to access it 
from different class loader context, you will need to create a different fqn.


> Class not found exception in TreeCacheAop when running with different class 
> loader
> ----------------------------------------------------------------------------------
>
>          Key: JBCACHE-90
>          URL: http://jira.jboss.com/jira/browse/JBCACHE-90
>      Project: JBoss Cache
>         Type: Bug
>     Versions: 1.2
>     Reporter: Ben Wang
>     Assignee: Ben Wang
>      Fix For: 1.2.1

>
> Original Estimate: 1 day
>         Remaining: 1 day
>
> Currently, TreeCacheAop will produce a CNFE if it is running under a 
> different class loader. For example, in a replication scenario where you have 
> a scoped class loader in a war file. This is discovered during the http repl 
> aop testing.
> The culprit is the serializable Class object for CLASS_KEY field. Solution is 
> to pass instead of the Class obejct, we replicate the Class.getName() (of 
> which is a primitive type).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.jboss.com/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-Development mailing list
JBoss-Development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to