Package org.springframework.scheduling.backportconcurrent

Examples of org.springframework.scheduling.backportconcurrent.ThreadPoolTaskExecutor


        ConnectionFactory connectionFactory = new ActiveMQConnectionFactory("vm://localhost?broker.persistent=false");
        JmsComponent jms = jmsComponentClientAcknowledge(connectionFactory);

        // use a spring 2.x task executor
        ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor();
        executor.setCorePoolSize(4);
        executor.setMaxPoolSize(16);
        executor.setThreadNamePrefix("foo");
        executor.afterPropertiesSet();
        jms.setTaskExecutorSpring2(executor);

        camelContext.addComponent("activemq", jms);

        return camelContext;
View Full Code Here

TOP

Related Classes of org.springframework.scheduling.backportconcurrent.ThreadPoolTaskExecutor

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.