Package org.springframework.integration.endpoint

Examples of org.springframework.integration.endpoint.EventDrivenConsumer.afterPropertiesSet()


    Assert.isInstanceOf(SubscribableChannel.class, moduleOutputChannel);
    MessageHandler handler = new SendingHandler(delegate, replyTo, properties);
    EventDrivenConsumer consumer = new EventDrivenConsumer((SubscribableChannel) moduleOutputChannel, handler);
    consumer.setBeanFactory(getBeanFactory());
    consumer.setBeanName("outbound." + name);
    consumer.afterPropertiesSet();
    Binding producerBinding = Binding.forProducer(name, moduleOutputChannel, consumer, properties);
    addBinding(producerBinding);
    producerBinding.start();
  }
View Full Code Here


      MessageChannel consumerChannel, AbstractBusPropertiesAccessor properties) {
    DirectHandler handler = new DirectHandler(consumerChannel);
    EventDrivenConsumer consumer = new EventDrivenConsumer(producerChannel, handler);
    consumer.setBeanFactory(getBeanFactory());
    consumer.setBeanName("outbound." + name);
    consumer.afterPropertiesSet();
    Binding binding = Binding.forDirectProducer(name, producerChannel, consumer, properties);
    addBinding(binding);
    binding.start();
    if (logger.isInfoEnabled()) {
      logger.info("Producer bound directly: " + binding);
View Full Code Here

      Assert.isInstanceOf(SubscribableChannel.class, moduleOutputChannel);
      MessageHandler handler = new SendingHandler(messageHandler, topicName, accessor);
      EventDrivenConsumer consumer = new EventDrivenConsumer((SubscribableChannel) moduleOutputChannel, handler);
      consumer.setBeanFactory(this.getBeanFactory());
      consumer.setBeanName("outbound." + name);
      consumer.afterPropertiesSet();
      Binding producerBinding = Binding.forProducer(name, moduleOutputChannel, consumer, accessor);
      addBinding(producerBinding);
      producerBinding.start();

    }
View Full Code Here

    Assert.isInstanceOf(SubscribableChannel.class, moduleOutputChannel);
    MessageHandler handler = new SendingHandler(delegate, replyTo, properties);
    EventDrivenConsumer consumer = new EventDrivenConsumer((SubscribableChannel) moduleOutputChannel, handler);
    consumer.setBeanFactory(this.getBeanFactory());
    consumer.setBeanName("outbound." + name);
    consumer.afterPropertiesSet();
    Binding producerBinding = Binding.forProducer(name, moduleOutputChannel, consumer, properties);
    addBinding(producerBinding);
    producerBinding.start();
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.