Optimize startup : Precompile Camel Routes

Solution Unverified - Updated -

Issue

  • For our application we want to improve startup time.
    During startup we see that our ~100 camel routes (which are defined in xml) are compiled during startup:
console.log.10:20.05.2015 05:03:51,768 INFO  [org.switchyard.common.camel.SwitchYardCamelContext] (MSC service thread 1-7) Route: direct:{http://com.redhat started and consuming from: Endpoint[direct://%7Bhttp://com.redhat/%7TestProzessor/TestAdapter]
console.log.10:20.05.2015 05:03:51,818 INFO  [org.switchyard.common.camel.SwitchYardCamelContext] (MSC service thread 1-7) Route: route28 started and consuming from: Endpoint[switchyard://TestProzessor]
  • Is there a way to precompile those routes? Are there other possibilities to improve startup time in initialing the camel routes?

Environment

  • Red Hat JBoss Fuse Service Works (FSW)
    • 6.0.0
  • Apache Camel

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