[ https://issues.apache.org/activemq/browse/CAMEL-2674?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=59117#action_59117 ]
Charles Moulliard commented on CAMEL-2674: ------------------------------------------ I have been able to implement setEndpointUri(String uri) and test it through JMX (junit test). Now I try to get from the processors list, the endpoints defined as destination for the loadbalancer. The following code does not work as it seems that LoadBalancer is not an instanceof SendProcessor {code} @ManagedAttribute(description = "List of endpoints uri") public List<Endpoint> getEndpointUriList() { List<Processor> processors = loadbalancer.getProcessors(); List<Endpoint> endpoints = new ArrayList<Endpoint>(); for(Processor p : processors) { if (p instanceof SendProcessor) { SendProcessor sp = (SendProcessor)p; if (sp.getDestination()!= null) { endpoints.add(sp.getDestination()); } } } return endpoints; } {code} Any idea to get list of endpoints is welcome ? > Add Spring JMX / @ManagedAttribute annotation to loadbalancer processor in > order to be able though jmx console to add / remove endpoints > ---------------------------------------------------------------------------------------------------------------------------------------- > > Key: CAMEL-2674 > URL: https://issues.apache.org/activemq/browse/CAMEL-2674 > Project: Apache Camel > Issue Type: New Feature > Reporter: Charles Moulliard > Fix For: 2.3.0 > > > Add Spring JMX / @ManagedAttribute annotation to loadbalancer processor in > order to be able though jmx console to add / > remove endpoints from existing List. This will allow infra people to > reconfigure dynamically list of HTTP / Jetty / Mina servers available for > loadbalancing. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.