Why is my processor not showing up in JConsolePage edited by Claus IbsenChanges (2)
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 should use the Spring JMX annotations. Just add @ManagedResource to the class, and the other annotations for the attributes and operations. Then Camel will automatic use those when the processor is being registered in JMX. Custom processor @ManagedResource("My Managed Component") public static class MyCustomProcessor implements Processor { private String foo = "hey";
@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
- [CONF] Apache Camel > Why is my processor not showing u... confluence
- [CONF] Apache Camel > Why is my processor not showing u... confluence
