use of won.protocol.exception.CamelConfigurationFailedException in project webofneeds by researchstudio-sat.
the class MatcherProtocolCamelConfiguratorImpl method addRemoteTopicListeners.
@Override
public synchronized void addRemoteTopicListeners(final Set<String> endpoints, final URI remoteEndpoint) throws CamelConfigurationFailedException {
logger.info("length of endpoints {}", endpoints.size());
MatcherApplicationListenerRouteBuilder matcherApplicationListenerRouteBuilder = new MatcherApplicationListenerRouteBuilder(getCamelContext(), endpoints, remoteEndpoint);
try {
getCamelContext().addRoutes(matcherApplicationListenerRouteBuilder);
} catch (Exception e) {
logger.debug("adding route to camel context failed", e);
throw new CamelConfigurationFailedException("adding route to camel context failed", e);
}
}
Aggregations