@Override public void beforeApplicationStart(CamelContext camelContext) { // Lets generates always incrementing lexically sortable unique // uuids. These uuids are also more compact than the camel default // and contain an embedded timestamp. camelContext.setUuidGenerator(KeyGenerator::createKey); // Log listener camelContext.addLogListener(new IntegrationLoggingListener(activityTracker)); }
@Override public void beforeApplicationStart(CamelContext camelContext) { // Lets generates always incrementing lexically sortable unique // uuids. These uuids are also more compact than the camel default // and contain an embedded timestamp. camelContext.setUuidGenerator(KeyGenerator::createKey); // Log listener camelContext.addLogListener(new IntegrationLoggingListener()); }
@Override protected void doStart() throws Exception { ObjectHelper.notNull(camelContext, "CamelContext", this); camelContext.getManagementStrategy().addEventNotifier(eventNotifier); if (!camelContext.getRoutePolicyFactories().contains(this)) { camelContext.addRoutePolicyFactory(this); } camelContext.addLogListener(logListener); if (tracer == null) { Set<Tracer> tracers = camelContext.getRegistry().findByType(Tracer.class); if (tracers.size() == 1) { tracer = tracers.iterator().next(); } } if (tracer == null) { tracer = TracerResolver.resolveTracer(); } if (tracer == null) { // No tracer is available, so setup NoopTracer tracer = NoopTracerFactory.create(); } ServiceHelper.startServices(eventNotifier); }
context.addLogListener(new IntegrationLoggingListener(activityTracker)); context.addInterceptStrategy(new ActivityTrackingInterceptStrategy(activityTracker)); context.addRoutes(new RouteBuilder() {