Search in sources :

Example 1 with MatcherApplicationListenerRouteBuilder

use of won.matcher.camel.routes.MatcherApplicationListenerRouteBuilder 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);
    }
}
Also used : CamelConfigurationFailedException(won.protocol.exception.CamelConfigurationFailedException) MatcherApplicationListenerRouteBuilder(won.matcher.camel.routes.MatcherApplicationListenerRouteBuilder) CamelConfigurationFailedException(won.protocol.exception.CamelConfigurationFailedException)

Aggregations

MatcherApplicationListenerRouteBuilder (won.matcher.camel.routes.MatcherApplicationListenerRouteBuilder)1 CamelConfigurationFailedException (won.protocol.exception.CamelConfigurationFailedException)1