Examples of BeanFactoryChannelResolver


Examples of org.springframework.integration.channel.BeanFactoryChannelResolver

    public SpringIntegrationConsumer(SpringIntegrationEndpoint endpoint, Processor processor) {
        super(endpoint, processor);
        this.endpoint = endpoint;
        context = (SpringCamelContext) endpoint.getCamelContext();
        if (context != null && endpoint.getMessageChannel() == null) {
            channelResolver = new BeanFactoryChannelResolver(context.getApplicationContext());
            inputChannelName = endpoint.getDefaultChannel();
            if (ObjectHelper.isNullOrBlank(inputChannelName)) {
                inputChannelName = endpoint.getInputChannel();
            }
            if (!ObjectHelper.isNullOrBlank(inputChannelName)) {
View Full Code Here

Examples of org.springframework.integration.channel.BeanFactoryChannelResolver

        super(endpoint);
        this.endpoint = endpoint;
        context = (SpringCamelContext) endpoint.getCamelContext();
        if (context != null && endpoint.getMessageChannel() == null) {
            outputChannelName = endpoint.getDefaultChannel();
            channelResolver = new BeanFactoryChannelResolver(context.getApplicationContext());
            if (ObjectHelper.isNullOrBlank(outputChannelName)) {
                outputChannelName = endpoint.getInputChannel();
            }
            if (ObjectHelper.isNullOrBlank(outputChannelName)) {
                throw new RuntimeCamelException("Can't find the right outputChannelName, "
View Full Code Here

Examples of org.springframework.integration.channel.BeanFactoryChannelResolver

    public SpringIntegrationProducer(SpringIntegrationEndpoint endpoint) {
        super(endpoint);
        context = (SpringCamelContext) endpoint.getCamelContext();
        if (context != null && endpoint.getMessageChannel() == null) {
            outputChannelName = endpoint.getDefaultChannel();
            channelResolver = new BeanFactoryChannelResolver(context.getApplicationContext());
            if (ObjectHelper.isEmpty(outputChannelName)) {
                outputChannelName = endpoint.getInputChannel();
            }
            if (ObjectHelper.isEmpty(outputChannelName)) {
                throw new RuntimeCamelException("Cannot find outputChannelName, please check the endpoint uri outputChannel part!");
View Full Code Here

Examples of org.springframework.integration.channel.BeanFactoryChannelResolver

    public SpringIntegrationConsumer(SpringIntegrationEndpoint endpoint, Processor processor) {
        super(endpoint, processor);
        this.endpoint = endpoint;
        context = (SpringCamelContext) endpoint.getCamelContext();
        if (context != null && endpoint.getMessageChannel() == null) {
            channelResolver = new BeanFactoryChannelResolver(context.getApplicationContext());
            inputChannelName = endpoint.getDefaultChannel();
            if (ObjectHelper.isEmpty(inputChannelName)) {
                inputChannelName = endpoint.getInputChannel();
            }
            if (!ObjectHelper.isEmpty(inputChannelName)) {
View Full Code Here

Examples of org.springframework.integration.channel.BeanFactoryChannelResolver

        super(endpoint);
        this.endpoint = endpoint;
        context = (SpringCamelContext) endpoint.getCamelContext();
        if (context != null && endpoint.getMessageChannel() == null) {
            outputChannelName = endpoint.getDefaultChannel();
            channelResolver = new BeanFactoryChannelResolver(context.getApplicationContext());
            if (ObjectHelper.isEmpty(outputChannelName)) {
                outputChannelName = endpoint.getInputChannel();
            }
            if (ObjectHelper.isEmpty(outputChannelName)) {
                throw new RuntimeCamelException("Cannot find outputChannelName, please check the endpoint uri outputChannel part!");
View Full Code Here

Examples of org.springframework.integration.channel.BeanFactoryChannelResolver

    private DirectChannel inputChannel;
    private MessageChannel outputChannel;

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

Examples of org.springframework.integration.channel.BeanFactoryChannelResolver

    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

Examples of org.springframework.integration.channel.BeanFactoryChannelResolver

        super(endpoint);
        this.endpoint = endpoint;
        context = (SpringCamelContext) endpoint.getCamelContext();
        if (context != null && endpoint.getMessageChannel() == null) {
            outputChannelName = endpoint.getDefaultChannel();
            channelResolver = new BeanFactoryChannelResolver(context.getApplicationContext());
            if (ObjectHelper.isEmpty(outputChannelName)) {
                outputChannelName = endpoint.getInputChannel();
            }
            if (ObjectHelper.isEmpty(outputChannelName)) {
                throw new RuntimeCamelException("Can't find the right outputChannelName, "
View Full Code Here

Examples of org.springframework.integration.channel.BeanFactoryChannelResolver

    public SpringIntegrationConsumer(SpringIntegrationEndpoint endpoint, Processor processor) {
        super(endpoint, processor);
        this.endpoint = endpoint;
        context = (SpringCamelContext) endpoint.getCamelContext();
        if (context != null && endpoint.getMessageChannel() == null) {
            channelResolver = new BeanFactoryChannelResolver(context.getApplicationContext());
            inputChannelName = endpoint.getDefaultChannel();
            if (ObjectHelper.isEmpty(inputChannelName)) {
                inputChannelName = endpoint.getInputChannel();
            }
            if (!ObjectHelper.isEmpty(inputChannelName)) {
View Full Code Here

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
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.