Your class should extend ServiceSupport

On Tue, Mar 24, 2015 at 9:42 AM, blommish <[email protected]> wrote:
> Hi,
>
> I have a Processor defined as the following,
>
> @ManagedResource(description = "Wiretap value")
> public class WiretapValue implements Processor {
>
> But to actually be able to see this in Jconsole, I can't use .process() in
> my routebuilder but need to use
> .bean((WiretapValue)
> getContext().getRegistry().lookupByName("wiretapValue"))
>
> I am not using Spring and adding it to the registry by:
> main.bind("wiretapValue", new WiretapValue());
>
> *Anyhow*,
> In JConsole this now pops up as "bean2", in org.apache.camel -> processors
> -> camel-1 -> bean2, it has the correct description but is it possible to
> have another name?? Making it unique and easier to locate?
>
>
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/JMX-objectname-of-processors-MBeans-tp5764684.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: [email protected]
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/

Reply via email to