Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

Re: commons-logging logger instances - how to initialize in replicated
session objects

Trond G. Ziarkowski

2005-02-12

Replies:

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@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.