You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by Bill Rossi <bi...@rossi.com> on 2003/05/28 13:39:08 UTC

[PATCH] JMX Spec violation

The current JMX implementation in Log4J is in violation of the JMX
Specification versions 1.1 and 1.2.  These specifications require that
attribute names and parameter names on MBeans be valid Java identifiers.

See Chapter 2 of the JMX 1.1 or 1.2 Specification.

As a result, the JMX facade shipped with Log4J will not run on Sun's
JMX Reference Implementation version 1.2.  I have not tried version 1.1.

The attached patch fixes this problem by mangling the attribute and
parameter names into legal Java identifiers.

The patch also flags attributes that do not support writes as read-only.

Thanks,

Bill