@Activate public synchronized void activate(Map<?, ?> properties) throws Exception { LOG.info("Activating: " + COMPONENT_LABEL); try { rwl.writeLock().lock(); LOG.info(properties.toString()); LOG.info("Activating the Producer Endpoint"); producer = camelContext.createProducerTemplate(); producer.setDefaultEndpointUri((String) properties.get("endpointUri")); producer.start(); } finally { rwl.writeLock().unlock(); } }