I forgot the images:

http://jakarta.apache.org/~ceki/jmx1.jpg
http://jakarta.apache.org/~ceki/jmx2.jpg
http://jakarta.apache.org/~ceki/jmx3.jpg

At 21:31 12.06.2002 +0200, I wrote:

>Hi all,
>
>As you might know, log4j 1.2 added JMX support. This JMX code is not
>finished but shows promise. The area is very interesting and provides
>for fun programming ground. If you have some to spare and are looking
>for a nice high-impact project, look no further.
>
>The following is messy, but just to give you an idea of the flavor of
>the beast.
>
>1) Put /java/jmx/lib/jmxri.jar
>     /java/jmx/lib/jmxtools.jar
>     /jakarta-log4j-1.2.3/src/java
>     /jakarta-log4j-1.2./dist/classes
>
>into your CLASSPATH, changing directory names according to your
>environment.
>
>
>2) cd /jakarta-log4j-1.2.3/src/java/org/apache/log4j/jmx
>
>
>3) javac T.java
>
>Do not skip step 3 even if the file T.class is already in the distrib.
>
>4) java T
>
>You'll see output similar to
>0 INFO [main] org.apache.log4j.jmx.Agent - Registering HtmlAdaptorServer 
>instance.
>0 INFO [main] org.apache.log4j.jmx.Agent - Registering 
>HierarchyDynamicMBean instance.
>10 DEBUG [main] org.apache.log4j.jmx.HierarchyDynamicMBean - preRegister 
>called. Server=com.sun.management.jmx.MBeanServerImpl@67e
>89, name=log4j:hiearchy=default
>10 DEBUG [main] org.apache.log4j.jmx.HierarchyDynamicMBean - postRegister 
>is called.
>20 DEBUG [main] root - preRegister called. 
>Server=com.sun.management.jmx.MBeanServerImpl@67e89, name=log4j:logger=root
>20 DEBUG [main] org.apache.log4j.jmx.LoggerDynamicMBean - Adding 
>AppenderMBean for appender named console
>40 DEBUG [main] org.apache.log4j.jmx.AppenderDynamicMBean - preRegister 
>called. Server=com.sun.management.jmx.MBeanServerImpl@67e8
>9, name=log4j:appender=console
>40 DEBUG [main] org.apache.log4j.jmx.AppenderDynamicMBean - Adding 
>LayoutMBean:console,layout=org.apache.log4j.PatternLayout
>50 DEBUG [main] org.apache.log4j.jmx.LayoutDynamicMBean - preRegister 
>called. Server=com.sun.management.jmx.MBeanServerImpl@67e89,
>  name=log4j:appender=console,layout=org.apache.log4j.PatternLayout
>50 DEBUG [main] org.apache.log4j.jmx.LayoutDynamicMBean - getMBeanInfo called.
>50 DEBUG [main] org.apache.log4j.jmx.AppenderDynamicMBean - getMBeanInfo 
>called.
>50 DEBUG [main] org.apache.log4j.jmx.HierarchyDynamicMBean - ---Adding 
>logger [root] as listener.
>
>5) View http://localhost:8082/ with your browser. Do not stop or kill
>"java T".
>
>6) Play. You can add new appenders to categories, view and configure
>appenders, add layouts...
>
>I have attached several window snapshots to give you a better idea.
>
>The current JMX support code requires testing but it is pretty
>nonetheless.  For example, in can manage any appender or layout type,
>even those that are not part of log4j.
>
>The same call for volunteers a few months ago went surprisingly
>unanswered. I am hoping for better luck in this round.
>
>
>--
>Ceki
>
>SUICIDE BOMBING - A CRIME AGAINST HUMANITY
>Sign the petition: http://www.petitiononline.com/1234567b
>I am signatory number 22106. What is your number?
>
>
>--
>To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>

--
Ceki

SUICIDE BOMBING - A CRIME AGAINST HUMANITY
Sign the petition: http://www.petitiononline.com/1234567b
I am signatory number 22106. What is your number?


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

Reply via email to