tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Luehe <Jan.Lu...@Sun.COM>
Subject StandardContext and serialization
Date Thu, 16 Jun 2005 17:44:10 GMT
Has anybody ever tried serializing a StandardContext?

StandardContext implements java.io.Serializable, but many
of its fields are not. I assume StandardContext has to
be serializable so it can be transmitted (e.g., via RMI)
to any remote javax.management.NotificationListener
(e.g., MapperListener) that gets notified of the context's JMX
registration.

I've started marking some of the non-serializable fields
as transient and reinitialize them in readObject(), but there
are so many direct and indirect references to non-serializable classes
that I'm afraid I'm opening a can of worms.


Jan


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message