@Override protected void doStart() throws Exception { super.doStart(); endpoint.onStarted(this); }
@Override protected void doStart() throws Exception { super.doStart(); this.service.attachCamelProducer(endpoint.getStream(), this); }
@Override protected void doStart() throws Exception { super.doStart(); // use Camel to create the thread pool for us this.executor = getEndpoint().getCamelContext().getExecutorServiceManager().newFixedThreadPool(this, "ERP", 10); }
@Override public void doStart() throws Exception { super.doStart(); this.exchange = this.endpoint.createAMQPExchange(); if (this.endpoint.isUsingDefaultExchange()) { LOG.info("Using default exchange of type {}", this.exchange.getClass().getSimpleName()); } else { LOG.info("Declaring exchange {} of type {}", this.exchange.getName(), this.exchange.getClass().getSimpleName()); try { this.endpoint.amqpAdministration.declareExchange(this.exchange); } catch(AmqpIOException e) { //The actual reason for failed exceptions is often swallowed up by Camel or Spring, find it Throwable rootCause = SpringAMQPComponent.findRootCause(e); LOG.error("Could not initialize exchange!", rootCause); throw e; } catch (AmqpConnectException e) { LOG.error("Producer cannot connect to broker - stopping endpoint {}", this.endpoint.toString(), e); stop(); this.endpoint.stop(); return; } } //Initialize execution pool this.threadPool = this.endpoint.getCamelContext().getExecutorServiceManager().newDefaultThreadPool(this, "amqp-producer"); }
protected void doStart() throws Exception { super.doStart(); if (uuidGenerator == null) { // use the generator configured on the camel context uuidGenerator = getEndpoint().getCamelContext().getUuidGenerator(); } if (endpoint.isTestConnectionOnStartup()) { testConnectionOnStartup(); } }
@Override public void doStart() throws Exception { super.doStart(); this.exchange = this.endpoint.createAMQPExchange(); if (this.endpoint.isUsingDefaultExchange()) { LOG.info("Using default exchange of type {}", this.exchange.getClass().getSimpleName()); } else { LOG.info("Declaring exchange {} of type {}", this.exchange.getName(), this.exchange.getClass().getSimpleName()); try { this.endpoint.amqpAdministration.declareExchange(this.exchange); } catch(AmqpIOException e) { //The actual reason for failed exceptions is often swallowed up by Camel or Spring, find it Throwable rootCause = SpringAMQPComponent.findRootCause(e); LOG.error("Could not initialize exchange!", rootCause); throw e; } catch (AmqpConnectException e) { LOG.error("Producer cannot connect to broker - stopping endpoint {}", this.endpoint.toString(), e); stop(); this.endpoint.stop(); return; } } //Initialize execution pool this.threadPool = this.endpoint.getCamelContext().getExecutorServiceManager().newDefaultThreadPool(this, "amqp-producer"); }
@Override protected void doStart() throws Exception { super.doStart(); // as in Undertow tests pool = new DefaultByteBufferPool(true, 17 * 1024); final Xnio xnio = Xnio.getInstance(); worker = xnio.createWorker(options); final SSLContext sslContext = getEndpoint().getSslContext(); if (sslContext != null) { ssl = new UndertowXnioSsl(xnio, options, sslContext); } client = UndertowClient.getInstance(); if (endpoint.isWebSocket()) { this.webSocketHandler = (CamelWebSocketHandler) endpoint.getComponent().registerEndpoint(endpoint.getHttpHandlerRegistrationInfo(), endpoint.getSslContext(), new CamelWebSocketHandler()); } LOG.debug("Created worker: {} with options: {}", worker, options); }
@Override protected void doStart() throws Exception { super.doStart();
@Override protected void doStart() throws Exception { super.doStart();