You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2015/03/23 10:44:11 UTC

[jira] [Created] (CAMEL-8531) Make it easy to get the management mbean for a given process by its id

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)