Writing Integrations in Java

Support for JShell is highly experimental

Using Java and JShell to write an integration to be deployed using Camel K is no different from defining your routing rules in Camel with the only difference that you do not need to implement or extend a RouteBuilder but you can access the current builder thx to the built-in builder variable.

        .constant("Hello Camel K!")

You can run it with the standard command:

kamel run example.jsh