Affects Version/s: 2.1 RC2
Fix Version/s: General Backlog
It would be useful if the <control-bus/> could be used to replace the mappings in a dynamic router.
We can add/remove mappings using the control bus, but we cannot establish a new set of mappings, thus...
Caused by: org.springframework.expression.EvaluationException: The method 'public void org.springframework.integration.router.AbstractMappingMessageRouter.setChannelMappings(java.util.Map)' is not supported by this command processor. If using the Control Bus, consider adding @ManagedOperation or @ManagedAttribute.
Simply adding @ManagedOperation to setChannelMappings() enables this capability (using a custom converter).
I have the fix and tests; not sure if we want to include (a more robust version of) the converter. Perhaps this converter is a candidate for core?