i have mbean class foo.bar.log4j , want use jolokia list loggers?
i have tried reading on https://jolokia.org/reference/pdf/jolokia-reference.pdf tells me how values of predefined java.memory etc
please suggest on how jolokia retrieve loggers user-defined class
you have keep in mind if mbean singleton in servlet, servlet running on multiple endpoints - that's why namespace alone not sufficient identify mbean instance.
if want instances of foo.bar.log4j
, can use read
endpoint this:
http://yourserver/jolokia/read/foo.bar.log4j:*
in general, can list of available mbeans this:
http://yourserver/jolokia/list
you should end large json document contains might want fetch. see things like
"foo.bar.log4j": { "name=foo,type=mylogger": { "desc": ... "attr": { ... }}}
you can attributes using this:
http://yourserver/jolokia/read/foo.bar.log4j:type=name=foo,type=mylogger
in addition type
, name
, may see other fields well, example context
or id
. a:b key java objectname mbean.
Comments
Post a Comment