Package org.springframework.integration.support.channel

Examples of org.springframework.integration.support.channel.BeanFactoryChannelResolver


public class WebServiceDemoTestApp {

  public static void main(String[] args) {
    ClassPathXmlApplicationContext context =
      new ClassPathXmlApplicationContext("/META-INF/spring/integration/temperatureConversion.xml");
    DestinationResolver<MessageChannel> channelResolver = new BeanFactoryChannelResolver(context);

    // Compose the XML message according to the server's schema
    String requestXml =
        "<FahrenheitToCelsius xmlns=\"http://www.w3schools.com/webservices/\">" +
            "<Fahrenheit>90.0</Fahrenheit>" +
        "</FahrenheitToCelsius>";

    // Create the Message object
    Message<String> message = MessageBuilder.withPayload(requestXml).build();

    // Send the Message to the handler's input channel
    MessageChannel channel = channelResolver.resolveDestination("fahrenheitChannel");
    channel.send(message);
  }
View Full Code Here


    private MessageChannel outputChannel;

    public SpringIntegrationConsumer(SpringIntegrationEndpoint endpoint, Processor processor) {
        super(endpoint, processor);
        this.context = (SpringCamelContext) endpoint.getCamelContext();
        this.channelResolver = new BeanFactoryChannelResolver(context.getApplicationContext());
    }
View Full Code Here

    private DirectChannel inputChannel;
    private MessageChannel outputChannel;

    public SpringIntegrationProducer(SpringCamelContext context, SpringIntegrationEndpoint endpoint) {
        super(endpoint);
        this.channelResolver = new BeanFactoryChannelResolver(context.getApplicationContext());
    }
View Full Code Here

    private MessageChannel outputChannel;

    public SpringIntegrationConsumer(SpringIntegrationEndpoint endpoint, Processor processor) {
        super(endpoint, processor);
        this.context = (SpringCamelContext) endpoint.getCamelContext();
        this.channelResolver = new BeanFactoryChannelResolver(context.getApplicationContext());
    }
View Full Code Here

    private DirectChannel inputChannel;
    private MessageChannel outputChannel;

    public SpringIntegrationProducer(SpringCamelContext context, SpringIntegrationEndpoint endpoint) {
        super(endpoint);
        this.channelResolver = new BeanFactoryChannelResolver(context.getApplicationContext());
    }
View Full Code Here

    private MessageChannel outputChannel;

    public SpringIntegrationConsumer(SpringIntegrationEndpoint endpoint, Processor processor) {
        super(endpoint, processor);
        this.context = (SpringCamelContext) endpoint.getCamelContext();
        this.channelResolver = new BeanFactoryChannelResolver(context.getApplicationContext());
    }
View Full Code Here

    private DirectChannel inputChannel;
    private MessageChannel outputChannel;

    public SpringIntegrationProducer(SpringCamelContext context, SpringIntegrationEndpoint endpoint) {
        super(endpoint);
        this.channelResolver = new BeanFactoryChannelResolver(context.getApplicationContext());
    }
View Full Code Here

    private MessageChannel outputChannel;

    public SpringIntegrationConsumer(SpringIntegrationEndpoint endpoint, Processor processor) {
        super(endpoint, processor);
        this.context = (SpringCamelContext) endpoint.getCamelContext();
        this.channelResolver = new BeanFactoryChannelResolver(context.getApplicationContext());
    }
View Full Code Here

    private MessageChannel outputChannel;

    public SpringIntegrationConsumer(SpringIntegrationEndpoint endpoint, Processor processor) {
        super(endpoint, processor);
        this.context = (SpringCamelContext) endpoint.getCamelContext();
        this.channelResolver = new BeanFactoryChannelResolver(context.getApplicationContext());
    }
View Full Code Here

        this.ctx = applicationContext;
    }

    public void setBeanFactory(BeanFactory beanFactory) {
        this.beanFactory = (BeanDefinitionRegistry) beanFactory;
        this.resolver = new BeanFactoryChannelResolver(beanFactory);
    }
View Full Code Here

TOP

Related Classes of org.springframework.integration.support.channel.BeanFactoryChannelResolver

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.