Details
-
Type:
Improvement
-
Status: Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 2.16.0
-
Component/s: camel-core, jmx
-
Labels:None
-
Estimated Complexity:Unknown
Description
The various EIPs have mbeans that exposes details about those processors. However when they use expression/predicate we only have the actual created instances of those available for JMX.
That means they cannot reverse engineer or represent in a format that is better understood by humans/jmx/toolings.
For example
from("direct:start") .pollEnrich().simple("seda:${header.whereto}").timeout(1000).id("mysend") .to("mock:foo");
The simple expression on poll enrich becomes
String uri = (String) mbeanServer.getAttribute(on, "Expression"); assertEquals("Simple: seda:${header.whereto}", uri);
Ideally we should have two information
- the language used for the expression
- the value as-is
So we can show that its simple language with the value "seda:${header.whereto}"