Writing Integrations in Java

Using Java 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 build and package it as a jar.

import org.apache.camel.builder.RouteBuilder;

public class Example extends RouteBuilder {
    public void configure() throws Exception {
              .constant("Hello Camel K!")

You can run it with the standard command:

kamel run Example.java