[logback-user] JMXConfigurator OName

Anders Engström epirealer at gmail.com
Fri Aug 15 13:23:11 CEST 2008


14 aug 2008 kl. 14.42 skrev Ceki Gulcu:

> Please so. I quite like the idea.

Unfortunately I can not access the JIRA server :/ I get a "Bad  
Gateway" response from the server.

I'll just go ahead and post the patch here instead.

I've modified it slightly so that you also can specify an explicit  
'objectName' in the tag:


This yields the default ObjectName of "ch.qos.logback.classic:Name=$ 

	<jmxConfigurator namespace="foo"/>

This results in "ch.qos.logback.classic:Name=$ 

	<jmxConfigurator objectName="logback:name=foo,type=bar"/>

Which obviously results in "logback:name=foo,type=bar" :)

Let me know if I need to adjust the patch in any way. And also - when  
is the next release expected *smile*? :)

> Anders Engström wrote:
>> [snip]
>> I've created a patch for JMXConfiguratorAction that allows it to  
>> take a
>> configuration attribute (optional) that will scope the MBean:
>> <jmxConfigurator namespace="your_custom_tag"/>
>> This will register the MBean with an ObjectName of
>> "ch 
>> .qos 
>> .logback 
>> .classic:Name 
>> = 
>> default 
>> ,Type 
>> = 
>> ch 
>> .qos 
>> .logback.classic.jmx.ConfiguratorMBean,namespace=your_custom_tag".
>> It is perhaps not the cleanest solution, but at least it provides  
>> some way
>> to control the scoping of the MBean in a multi-application  
>> environment.
>> Let me know if this is a good idea, and I will post the patch to  
>> JIRA!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://qos.ch/pipermail/logback-user/attachments/20080815/fcdc2798/attachment.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jmxConfigurator.patch.gz
Type: application/x-gzip
Size: 1293 bytes
Desc: not available
Url : http://qos.ch/pipermail/logback-user/attachments/20080815/fcdc2798/attachment.bin 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://qos.ch/pipermail/logback-user/attachments/20080815/fcdc2798/attachment-0001.htm 

More information about the Logback-user mailing list