This content has been marked as final.
Show 2 replies
-
1. Re: Serilizability of aop proxy
starksm64 Nov 15, 2006 1:26 AM (in response to starksm64)The NotSerializableException was valid as the target was not serializable. The only question is why the deserialization of the proxy is not restoring the underlying bean properties correctly.
-
2. Re: Serilizability of aop proxy
kabirkhan Nov 15, 2006 12:26 PM (in response to starksm64)The problem was that the call to KernelControllerContextAware.setControllerContext() was happening as part of the InstantiateAction, i.e. before the bean was configured.
In other words, when it was serialized/bound into jndi the state had not been set yet.
I have moved the KernelControllerContextAware.set/unsetControllerContext() calls to the ConfigureAction for now, but we do need something a bit more fine-grained for these life-cycle aspects.