camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CAMEL-8531) Make it easy to get the management mbean for a given process by its id
Date Mon, 23 Mar 2015 09:44:11 GMT
Claus Ibsen created CAMEL-8531:
----------------------------------

             Summary: Make it easy to get the management mbean for a given process by its
id
                 Key: CAMEL-8531
                 URL: https://issues.apache.org/jira/browse/CAMEL-8531
             Project: Camel
          Issue Type: New Feature
          Components: camel-core, jmx
            Reporter: Claus Ibsen
            Assignee: Claus Ibsen
             Fix For: 2.16.0


As we primary have the performance stats and whatnot in JMX MBeans that are registered in
the mbean server, end users would need to use the clunky JMX API to lookup the mbean for a
process id.

>From Java code, you may just want to easily grab the mbean. 

For example:
{code}
ManagedAggregateProcessorMBean mbean = context.getManagedProcessor("myAggregator", ManagedAggregateProcessorMBean.class);
{code}

Then you have from java code, all the power of the mbean to get any kind of statistics you
want, just like from JMX.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message