Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
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}"