camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matteo Mortari (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-7018) Using custom beans with @ManagedResource shows unavailable standard attributes
Date Wed, 10 Dec 2014 16:22:13 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-7018?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14241326#comment-14241326
] 

Matteo Mortari commented on CAMEL-7018:
---------------------------------------

Hi, this solves for the use case in description 'custom bean'.
However if I define a +custom Processor+, possibly I annotate with @ManagedResource to expose
my own attr/ops, but shouldn't this case _indeed_ expose also the Camel's default attrs/ops
for a ManagedProcessor?

The problem I believe is this line, modified in the changelog of this bug:
https://github.com/apache/camel/blob/camel-2.13.x/camel-core/src/main/java/org/apache/camel/management/DefaultManagementMBeanAssembler.java#L63
would actually make expose for a custom Processor _only_ my own annotated attr/ops. But being
my custom Processor a ManagedProcessor at runtime, I would have expected it to expose on JMX
both the custom and Camel's default attr/ops.

It seems to me same problem described here:
http://camel.465427.n5.nabble.com/exposing-custom-jmx-properties-td5713375.html
And same I experienced today.

I would like to know if this is intended, and how to mitigate for a custom processor, please?
I think this could be a sort of unexpected behavior to some users, and from the faq http://camel.apache.org/why-is-my-processor-not-showing-up-in-jconsole.html
to me at least is not clear how to mitigate for a custom processor.
Thanks

> Using custom beans with @ManagedResource shows unavailable standard attributes
> ------------------------------------------------------------------------------
>
>                 Key: CAMEL-7018
>                 URL: https://issues.apache.org/jira/browse/CAMEL-7018
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core, jmx
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.11.3, 2.12.3, 2.13.0
>
>         Attachments: jmx-custom-bean.png
>
>
> If you have a custom bean with @ManagedResource and your own attr/ops then Camel adds
its default attrs/ops which it should not as they are not available.
> See screenshot



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

Mime
View raw message