Adding custom jars to camel-k integration

1/16/2020

Lets say I have utility jar called validation.jar which can validate some string to be forwarded.

How can I add this validation.jar along with camel-k integration in minkube.

example :

import com.validation.Util;
import org.apache.camel.builder.RouteBuilder;

public class MyRoute extends RouteBuilder {

    @Override
    public void configure() throws Exception {
        //from("timer:tick").log(Util.validate("dummy message - new"));
        from("timer:tick").log("dummy message - new");
    }
}

to get com.validation.Util class we need validation.jar available with camel-k. How to provide that.

-- S Kumar
apache-camel
kubernetes
minikube

0 Answers