Hi,

I had the same problem that is described in bug 22934, namely that the jmx stuff
wouldn't work with jmxri 1.2. 

Since I really wanted this feature, I've been playing with the classes in
org.apache.log4j.jmx trying to make it work. 

I'm attaching the classes I've changed - that would be all of them :-) - and a new one
I'm using in HierarchyDynamicMBean. Maybe someone can look over them and check them in
if they're OK? 

I've actually done more changes than were necessary to make it work with 1.2, because
when I got started I couldn't stop...


  - replaced . and : with * and respectively _ when used in attribute names, in order
to get correct java identifiers 
  - added a new operation removeLoggerMBean in HierarchyDynamicMBean. 
  - added a new attribute existingLoggers in HierarchyDynamicMBean (for people like me
who forget what loggers they've defined)
  - added a new operation removeAppender in LoggerDynamicMBean
  - when a loggerMBean is unregistered, all it's appenders that aren't used by other
regsitered logger beans are also unregistered
  - when an appender bean is unregistered, the corresponding layout bean is
unregistered too
  - diverse changes in the description of attributes and operations 

Warning: I've uncommented  "implements LoggerEventListener" in HierarchyDynamicMBean
because I couldn't find the class definition in my project ( log4j.jar 1.2.8 in
classpath). The methods are still there however, it just needs to be commented back in.

That's all I can remember at the moment. 

Bye and thank you for the good work you're doing on my favourite tool :-)

Ana-Maria

-------------------------------------------------------------------------------------------
***Protect your PC from local E-Mail Application security holes***
***Maintain your Privacy - MS Passport Free***
***Anti SPAM "Whitelist" feature***

http://www.x-mail.net Web Based E-Mail, accessible anywhere

Voice Messages, VoIP, Video Conferencing, Live Chat, 
X-Mail Messenger, Personal Web Hosting, 128 bit SSL Secure, 
Calendar, Bookmarks, Forwarding, Virtual Mail Map Aliasing

X-Mail Premium: 20MB Messages, 100MB Storage, POP3, Ad Free
-------------------------------------------------------------------------------------------
Anonymous Web Surfing http://www.snoopblocker.com
Search http://www.teradex.com
  


Attachment: log4j_jmx.zip
Description: application/compressed

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to