ObjectName query = ObjectName.getInstance("org.apache.servicemix:Type=Endpoint,Id=*");
Set<ObjectInstance> names = queryNames(query, null);
List<ManagedEndpointMBean> answer = new ArrayList<ManagedEndpointMBean>();
for (ObjectInstance on : names) {
ManagedEndpointMBean component = (ManagedEndpointMBean) newProxyInstance(on.getObjectName(), ManagedEndpointMBean.class, true);
answer.add(component);
}
return answer;
}