Package org.springframework.integration.support

Examples of org.springframework.integration.support.DefaultMessageBuilderFactory


  protected MessageBus getMessageBus() throws Exception {
    LocalMessageBus bus = new LocalMessageBus();
    GenericApplicationContext applicationContext = new GenericApplicationContext();
    applicationContext.getBeanFactory().registerSingleton(
        IntegrationUtils.INTEGRATION_MESSAGE_BUILDER_FACTORY_BEAN_NAME,
        new DefaultMessageBuilderFactory());
    applicationContext.refresh();
    bus.setApplicationContext(applicationContext);
    bus.afterPropertiesSet();
    return bus;
  }
View Full Code Here


  public RedisTestMessageBus(RedisConnectionFactory connectionFactory, MultiTypeCodec<Object> codec) {
    RedisMessageBus messageBus = new RedisMessageBus(connectionFactory, codec);
    GenericApplicationContext context = new GenericApplicationContext();
    context.getBeanFactory().registerSingleton(IntegrationUtils.INTEGRATION_MESSAGE_BUILDER_FACTORY_BEAN_NAME,
        new DefaultMessageBuilderFactory());
    DefaultHeaderChannelRegistry channelRegistry = new DefaultHeaderChannelRegistry();
    channelRegistry.setReaperDelay(Long.MAX_VALUE);
    ThreadPoolTaskScheduler taskScheduler = new ThreadPoolTaskScheduler();
    taskScheduler.afterPropertiesSet();
    channelRegistry.setTaskScheduler(taskScheduler);
View Full Code Here

TOP

Related Classes of org.springframework.integration.support.DefaultMessageBuilderFactory

Copyright © 2018 www.massapicom. 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.