Unable to configure ThreadPoolSize in java processor from cm:property file.

Solution Unverified - Updated -

Issue

  • Unable to configure ThreadPoolSize in java processor from cm:property file
  • I am trying to initialize a ExecutorService in camel Processor, something like
public TransformProcessor(int a) throws JAXBException {
        this.threadPool = Executors.newFixedThreadPool(a);

    }
  • I want to inject value of threadpool size from a property file so that I dont need to change code again and again.

Environment

  • Red Hat JBoss Fuse
    • 6.1.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.