Websphere specific JMX configuration?

How can we enable JMX for logback in WebSphere ? Currently do not see ch.qos.logback.classic.jmx.Configurator in jconsole though <jmxConfigurator/> tag exist in logback configuration file. logback 0.9.27 WebSphere 7.0 This is similar to one posted earlier -- http://www.qos.ch/pipermail/logback-user/2010-November/001886.html -Sumanth

Sumanth Donthi <thetallman63@...> writes:
How can we enable JMX for logback in WebSphere ? Currently do not
see ch.qos.logback.classic.jmx.Configurator in jconsole though
<jmxConfigurator/> tag exist in logback configuration file.
logback 0.9.27WebSphere 7.0
This is similar to one posted earlier -- http://www.qos.ch/pipermail/logback-
user/2010-November/001886.html
-Sumanth
_______________________________________________ Logback-user mailing list Logback-user@... http://qos.ch/mailman/listinfo/logback-user
Hey ! I am looking for the same answer ! This bug is due to logback or websphere ? Thanks for your help Pietro

I believe this is a WebSphere issue. When you configure Logback to use <jmxConfigurator/> tag, it does deploy a JMX MBean....but for some reason, within WebSphere, it does not show up when using jConsole. But it is deployed, and it can be accessed by other programmatic ways. Here is a recent post that contains a code sample of how I am accessing it via Java code: http://mailman.qos.ch/pipermail/logback-user/2012-March/003034.html Thanks, -Chris From: Pietro <pierre.morvant@gmail.com> To: logback-user@qos.ch Date: 06/06/2012 10:55 AM Subject: Re: [logback-user] Websphere specific JMX configuration? Sent by: logback-user-bounces@qos.ch Sumanth Donthi <thetallman63@...> writes:
How can we enable JMX for logback in WebSphere ? Currently do not
see ch.qos.logback.classic.jmx.Configurator in jconsole though
<jmxConfigurator/> tag exist in logback configuration file.
logback 0.9.27WebSphere 7.0
This is similar to one posted earlier --
http://www.qos.ch/pipermail/logback- user/2010-November/001886.html
-Sumanth
_______________________________________________ Logback-user mailing list Logback-user@... http://qos.ch/mailman/listinfo/logback-user
Hey ! I am looking for the same answer ! This bug is due to logback or websphere ? Thanks for your help Pietro _______________________________________________ Logback-user mailing list Logback-user@qos.ch http://mailman.qos.ch/mailman/listinfo/logback-user *************************** IMPORTANT NOTE*****************************-- The opinions expressed in this message and/or any attachments are those of the author and not necessarily those of Brown Brothers Harriman & Co., its subsidiaries and affiliates ("BBH"). There is no guarantee that this message is either private or confidential, and it may have been altered by unauthorized sources without your or our knowledge. Nothing in the message is capable or intended to create any legally binding obligations on either party and it is not intended to provide legal advice. BBH accepts no responsibility for loss or damage from its use, including damage from virus. ********************************************************************************

That's odd. Why wouldn't the MBean not be visible in jconsole? Does JMXConfiguratorr register itself under a wrong name? On 12.06.2012 16:32, Christopher.White@bbh.com wrote:
I believe this is a WebSphere issue.
When you configure Logback to use <jmxConfigurator/> tag, it does deploy a JMX MBean....but for some reason, within WebSphere, it does not show up when using jConsole.
But it is deployed, and it can be accessed by other programmatic ways.
Here is a recent post that contains a code sample of how I am accessing it via Java code:
http://mailman.qos.ch/pipermail/logback-user/2012-March/003034.html
Thanks, -Chris
From: Pietro <pierre.morvant@gmail.com> To: logback-user@qos.ch Date: 06/06/2012 10:55 AM Subject: Re: [logback-user] Websphere specific JMX configuration? Sent by: logback-user-bounces@qos.ch ------------------------------------------------------------------------
Sumanth Donthi <thetallman63@...> writes:
How can we enable JMX for logback in WebSphere ? Currently do not
see ch.qos.logback.classic.jmx.Configurator in jconsole though
<jmxConfigurator/> tag exist in logback configuration file.
logback 0.9.27WebSphere 7.0
This is similar to one posted earlier --
http://www.qos.ch/pipermail/logback- user/2010-November/001886.html
-Sumanth
_______________________________________________ Logback-user mailing list Logback-user@... http://qos.ch/mailman/listinfo/logback-user
Hey ! I am looking for the same answer ! This bug is due to logback or websphere ?
Thanks for your help
Pietro
-- Ceki http://twitter.com/#!/ceki

Hi Chris, Would you be interested in investigating this further? You would need to build logback from sources. This is explained at [1]. If you are using IntelliJ IDEA, the steps are quite trivial. Under eclipse, it's a bit more involved. If you can't be bothered with installing Scala, just remove the "STest" files (tests written in scala) from the source tree. Let me know what you think. [1] http://logback.qos.ch/setup.html#ide On 12.06.2012 16:32, Christopher.White@bbh.com wrote:
I believe this is a WebSphere issue.
When you configure Logback to use <jmxConfigurator/> tag, it does deploy a JMX MBean....but for some reason, within WebSphere, it does not show up when using jConsole.
But it is deployed, and it can be accessed by other programmatic ways.
Here is a recent post that contains a code sample of how I am accessing it via Java code:
http://mailman.qos.ch/pipermail/logback-user/2012-March/003034.html
Thanks, -Chris

I can try looking into this further when I have some spare time. I remember reading about this issue before (can't remember where, and not sure if it was related to logback or some other JMX utility), and it turned out to be just that WebSphere handles JMX somewhat differently, and therefore JMX MBeans that are registered by deployed applications are not visible by the standard jConsole. It might have something to do with WebSphere creating multiple JMX MBean Servers, and the jConsole points to a different one? I'll try to dig up more information and will let you know when I find something. Thanks, -Chris From: ceki <ceki@qos.ch> To: logback users list <logback-user@qos.ch> Date: 06/12/2012 10:49 AM Subject: Re: [logback-user] Websphere specific JMX configuration? Sent by: logback-user-bounces@qos.ch Hi Chris, Would you be interested in investigating this further? You would need to build logback from sources. This is explained at [1]. If you are using IntelliJ IDEA, the steps are quite trivial. Under eclipse, it's a bit more involved. If you can't be bothered with installing Scala, just remove the "STest" files (tests written in scala) from the source tree. Let me know what you think. [1] http://logback.qos.ch/setup.html#ide On 12.06.2012 16:32, Christopher.White@bbh.com wrote:
I believe this is a WebSphere issue.
When you configure Logback to use <jmxConfigurator/> tag, it does deploy a JMX MBean....but for some reason, within WebSphere, it does not show up when using jConsole.
But it is deployed, and it can be accessed by other programmatic ways.
Here is a recent post that contains a code sample of how I am accessing it via Java code:
http://mailman.qos.ch/pipermail/logback-user/2012-March/003034.html
Thanks, -Chris
_______________________________________________ Logback-user mailing list Logback-user@qos.ch http://mailman.qos.ch/mailman/listinfo/logback-user *************************** IMPORTANT NOTE*****************************-- The opinions expressed in this message and/or any attachments are those of the author and not necessarily those of Brown Brothers Harriman & Co., its subsidiaries and affiliates ("BBH"). There is no guarantee that this message is either private or confidential, and it may have been altered by unauthorized sources without your or our knowledge. Nothing in the message is capable or intended to create any legally binding obligations on either party and it is not intended to provide legal advice. BBH accepts no responsibility for loss or damage from its use, including damage from virus. ********************************************************************************

Using jconsole with Websphere has been asked several times on StackOverflow: http://stackoverflow.com/search?q=websphere+jconsole Some of the answers seem awfully complicated. Just my 2cents. -- Ceki On 12.06.2012 17:53, Christopher.White@bbh.com wrote:
I can try looking into this further when I have some spare time.
I remember reading about this issue before (can't remember where, and not sure if it was related to logback or some other JMX utility), and it turned out to be just that WebSphere handles JMX somewhat differently, and therefore JMX MBeans that are registered by deployed applications are not visible by the standard jConsole. It might have something to do with WebSphere creating multiple JMX MBean Servers, and the jConsole points to a different one?
I'll try to dig up more information and will let you know when I find something.
Thanks, -Chris
participants (4)
-
ceki
-
Christopher.White@bbh.com
-
Pietro
-
Sumanth Donthi