Can _nameMap itself be transient, and if so would that solve this
problem?  It seems like you might be able to get away with making a
hash map full of weak references transient.


On 5/20/06, Carlin Rogers <[EMAIL PROTECTED]> wrote:
NetUI devs,

I was wondering if you had some thoughts about the NameService class
and support for serialization. See...

http://issues.apache.org/jira/browse/BEEHIVE-1112

I'm not sure that we can actually make NameService Serializable
because the _nameMap HashMap member variable is a map of
WeakReference. Unfortunately, I don't think reference objects are
Serializable. In general you would have the variable that refers to
the reference object be transient in a Serializable class. Otherwise
we'd just get an exception like "java.io.NotSerializableException:
java.lang.ref.WeakReference"

So, any thoughts about how to support the use of NameService (in the
DivPanel and Tree XHR features) in a cluster environment?

Thanks,
Carlin

Reply via email to