Why is my processor not showing up in JConsolePage edited by Claus IbsenChanges (1)
Full ContentWhy is my processor not showing up in JConsoleNot every processor is managed and thus not all is visible in the JConsole. A processor must implement the org.apache.camel.Service to be managed. Most EIP processors does this. From Camel 2.6 onwards your custom Processor can just implement ManagementAware and just return this in the method. Custom processor @ManagedResource public static class MyCustomProcessor implements ManagementAware<Processor>, Processor { private String foo = "hey"; public Object getManagedObject(Processor object) { // just return this as we use Spring JMX annotations to define which attributes/operations // to be enlisted in JMX return this; } @ManagedAttribute public String getFoo() { return foo; } @ManagedAttribute public void setFoo(String foo) { this.foo = foo; } public void process(Exchange exchange) throws Exception { exchange.getIn().setHeader("foo", getFoo()); } } See also
Change Notification Preferences
View Online
|
View Changes
|
Add Comment
|
- [CONF] Apache Camel > Why is my processor not showing up in ... confluence