Hi Ben,
I have the following POJO class which needs to be apectized and has to send
over wire to client.
Code:
| import java.io.Serializable;
| import java.util.ArrayList;
|
| /**
| *
| * @@org.jboss.cache.aop.AopMarker
| */
|
| public class Answer implements
It should. Let's say a Person object has reference to List. Then when you store
the Person object in the CacheAop, we will swap out the List reference with a
proxy dynamically.
-Ben
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3903555#3903555
Reply to the
Well, I solved it by wrapping the result from the cache in an object that it
still serializable. The next problem is: are Collections in stored objects also
automatically stored when I use TreeCacheAop? I don't see that happening...
when I ask the contents of a Collection with a cached object
No, this is the AOP-associated interceptor that we attach. Problem is this is
not Serializable. And it doesn't make sense for it to be Serializable, IMO.
Can you give me your use case? One way to do it is do removeObject first,
then the pojo will become regular pojo. But that will destroy the