LOG4J2-493 changes to JMX RingBuffer MBean because AsyncLoggerContext is
no longer static

Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/3195cdac
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/3195cdac
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/3195cdac

Branch: refs/heads/LOG4J2-1161
Commit: 3195cdac52d7f964d5fc962b7753f4371e7fd0c7
Parents: dc62934
Author: rpopma <rpo...@apache.org>
Authored: Thu Oct 22 10:38:25 2015 +0900
Committer: rpopma <rpo...@apache.org>
Committed: Thu Oct 22 10:38:25 2015 +0900

----------------------------------------------------------------------
 .../src/main/java/org/apache/logging/log4j/core/jmx/Server.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/3195cdac/log4j-core/src/main/java/org/apache/logging/log4j/core/jmx/Server.java
----------------------------------------------------------------------
diff --git 
a/log4j-core/src/main/java/org/apache/logging/log4j/core/jmx/Server.java 
b/log4j-core/src/main/java/org/apache/logging/log4j/core/jmx/Server.java
index 4860551..b3f4614 100644
--- a/log4j-core/src/main/java/org/apache/logging/log4j/core/jmx/Server.java
+++ b/log4j-core/src/main/java/org/apache/logging/log4j/core/jmx/Server.java
@@ -174,7 +174,7 @@ public final class Server {
                 register(mbs, mbean, mbean.getObjectName());
 
                 if (ctx instanceof AsyncLoggerContext) {
-                    final RingBufferAdmin rbmbean = 
AsyncLogger.createRingBufferAdmin(ctx.getName());
+                    final RingBufferAdmin rbmbean = ((AsyncLoggerContext) 
ctx).createRingBufferAdmin();
                     register(mbs, rbmbean, rbmbean.getObjectName());
                 }
 

Reply via email to