Java Completion For Standalone Camel K Files with VS Code extension 0.11.0

Apache Camel K should be as lightweight as possible. Therefore, the Camel K project provides standalone Java files to describe a Camel integration. The downside to this practice is that existing IDEs cannot provide complete support out of the box. To provide a complete experience with Apache Camel K's standalone Java files, there were three solutions:

As a result, there is no intuitive configuration. However, Red Hat's Tooling for Apache Camel K offers a new possibility.

With Tooling for Apache Camel K version 0.11.0, Java language support is now included, and there are only two requirements. First, you need to have the word "camel" in the Java file's content. Most of the time, this requirement is satisfied by the import package, itself. Second, you must have no project in the workspace. If there are projects, we expect that the classic Maven/Gradle build provides the Java language support. However, these requirements should not be a problem in most cases.

Here is the completion process on an Apache Camel K standalone Java file:

Java Completion on Standalone Camel K files

Next, you might try to transpose the tutorial Sending a telegram with Apache Camel K and Visual Studio Code using Java.

Last updated: June 29, 2020