JavaShell DSL

Since Camel 3.15

This DSL is experimental support level and is not recommended being used for production

The jsh-dsl is used for runtime compiling JavaShell routes in an existing running Camel integration. This was invented for Camel K and later ported to Apache Camel.

This means that Camel will load the .jsh source during startup and use the JavaShell compiler to transform this into Camel routes.


The following example.js source file:

        .constant("Hello Camel K!")

Can then be loaded and run with Camel CLI or Camel K.

Running with Camel K
kamel run example.jsh
Running with Camel CLI
camel run example.jsh

See Also