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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content