Package org.apache.camel.impl

Examples of org.apache.camel.impl.DefaultConsumerTemplate


    private ConsumerTemplate template;
    @XmlAttribute
    private Integer maximumCacheSize;

    public ConsumerTemplate getObject() throws Exception {
        template = new DefaultConsumerTemplate(getCamelContext());

        // set custom cache size if provided
        if (maximumCacheSize != null) {
            template.setMaximumCacheSize(maximumCacheSize);
        }
View Full Code Here


        assertEquals("Inject a wrong camel context", producer1.getContext().getName(), "camel1");
       
        DefaultProducerTemplate producer2 = getMandatoryBean(DefaultProducerTemplate.class, "producer2");
        assertEquals("Inject a wrong camel context", producer2.getContext().getName(), "camel2");
       
        DefaultConsumerTemplate consumer = getMandatoryBean(DefaultConsumerTemplate.class, "consumer");
        assertEquals("Inject a wrong camel context", consumer.getCamelContext().getName(), "camel2");
    }
View Full Code Here

        assertEquals("Inject a wrong camel context", producer1.getContext().getName(), "camel1");
       
        DefaultProducerTemplate producer2 = getMandatoryBean(DefaultProducerTemplate.class, "producer2");
        assertEquals("Inject a wrong camel context", producer2.getContext().getName(), "camel2");
       
        DefaultConsumerTemplate consumer = getMandatoryBean(DefaultConsumerTemplate.class, "consumer");
        assertEquals("Inject a wrong camel context", consumer.getCamelContext().getName(), "camel2");
    }
View Full Code Here

    }

    protected abstract CamelContext getCamelContextWithId(String camelContextId);

    public Object getObject() throws Exception {
        template = new DefaultConsumerTemplate(camelContext);

        // set custom cache size if provided
        if (maximumCacheSize != null) {
            template.setMaximumCacheSize(maximumCacheSize);
        }
View Full Code Here

TOP

Related Classes of org.apache.camel.impl.DefaultConsumerTemplate

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.