logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kurt.Eckha...@equifax.com
Subject Serializable NDC DiagnosticContext
Date Thu, 01 Sep 2005 17:52:00 GMT

Hi Folks,

I'd like to pass a cloned NDC Stack across an EJB call, but can't since its
NDC.DiagnosticContext entries are not serializable.  Does anybody see any
potential issues with adding an "implements java.io.Serializable" to the
DiagnosticContext class (see snip below)?

// =====================================================================
   private static class DiagnosticContext implements java.io.Serializable {

    String fullMessage;
    String message;

    DiagnosticContext(String message, DiagnosticContext parent) {
      this.message = message;
      if(parent != null) {
      fullMessage = parent.fullMessage + ' ' + message;
      } else {
      fullMessage = message;


-Kurt Eckhardt
This message contains information from Equifax Inc. which may be
confidential and privileged.  If you are not an intended recipient, please
refrain from any disclosure, copying, distribution or use of this
information and note that such actions are prohibited.  If you have
received this transmission in error, please notify by e-mail

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

View raw message