tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard Mixon (qwest)" <rnmi...@qwest.net>
Subject RE: commons-logging logger instances - how to initialize in replicated session objects
Date Sat, 12 Feb 2005 13:43:03 GMT
Thanks Trond, I had forgotten about readObject.That may be a better
option than creating yet another utility method.

Trond G. Ziarkowski wrote:
> Hi,
>
> I'm maybe stepping out of my territory here, but I think that static
> members are not serialized/deserialized. To re-initialize your static
> logger maybe you should try to implement the
> readObject(java.io.ObjectInputStream in) method from the
> java.io.Serializable interface something like this:
>
> readObject(...) {
>     super.readObject(...);
>     log = LogFactory.getLog(...);
> }
>
> Hope this is of some help
>
> Trond
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


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


Mime
View raw message