Examples of DirectChannel


Examples of org.springframework.integration.channel.DirectChannel

    return gateway;
  }

  @Bean
  public MessageChannel toJsonChannel() {
    return new DirectChannel();
  }
View Full Code Here

Examples of org.springframework.integration.channel.DirectChannel

  }

  @BridgeTo
  @Bean
  public MessageChannel bridgeToNowhere() {
    return new DirectChannel();
  }
View Full Code Here

Examples of org.springframework.integration.channel.DirectChannel

    return new DirectChannel();
  }

  @Bean
  public MessageChannel smtpChannel() {
    return new DirectChannel();
  }
View Full Code Here

Examples of org.springframework.integration.channel.DirectChannel

  }

  @Bean
  public MessageChannel foo() {
    return new DirectChannel();
  }
View Full Code Here

Examples of org.springframework.integration.channel.DirectChannel

  @IntegrationComponentScan
  public static class TestConfig {

    @Bean
    public MessageChannel gatewayChannel() {
      return new DirectChannel();
    }
View Full Code Here

Examples of org.springframework.integration.channel.DirectChannel

  @IntegrationComponentScan
  public static class TestConfig {

    @Bean
    public MessageChannel gatewayChannel() {
      return new DirectChannel();
    }
View Full Code Here

Examples of org.springframework.integration.channel.DirectChannel

    };
  }

  @Bean
  public MessageChannel splitChannel() {
    return new DirectChannel();
  }
View Full Code Here

Examples of org.springframework.integration.channel.DirectChannel

  private static Logger logger = Logger.getLogger(GmailInboundImapIdleAdapterTestApp.class);


  public static void main (String[] args) throws Exception {
    ApplicationContext ac = new ClassPathXmlApplicationContext("/META-INF/spring/integration/gmail-imap-idle-config.xml");
    DirectChannel inputChannel = ac.getBean("receiveChannel", DirectChannel.class);
    inputChannel.subscribe(new MessageHandler() {
      public void handleMessage(Message<?> message) throws MessagingException {
        logger.info("Message: " + message);
      }
    });
  }
View Full Code Here

Examples of org.springframework.integration.channel.DirectChannel

  private static Logger logger = Logger.getLogger(GmailInboundPop3AdapterTestApp.class);

  public static void main (String[] args) throws Exception {
    ApplicationContext ac = new ClassPathXmlApplicationContext("/META-INF/spring/integration/gmail-pop3-config.xml");
    DirectChannel inputChannel = ac.getBean("receiveChannel", DirectChannel.class);
    inputChannel.subscribe(new MessageHandler() {
      public void handleMessage(Message<?> message) throws MessagingException {
        logger.info("Message: " + message);
      }
    });
  }
View Full Code Here

Examples of org.springframework.integration.channel.DirectChannel

       
        MessageChannel requestChannel = (MessageChannel) applicationContext.getBean("requestChannel");
        Map<String, Object> maps = new HashMap<String, Object>();
        maps.put(MessageHeaders.REPLY_CHANNEL, "responseChannel");
        Message<String> message = new GenericMessage<String>(MESSAGE_BODY, maps);
        DirectChannel responseChannel = (DirectChannel) applicationContext.getBean("responseChannel");
        responseChannel.subscribe(new MessageHandler() {
            public void handleMessage(Message<?> message) {
                String result = (String) message.getPayload();
                assertEquals("Get the wrong result", MESSAGE_BODY + " is processed",  result);               
            }            
        });
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.