Apache Camel URI Completion with Java DSL

Apache Camel URI Completion with Java DSL

Apache Camel URI completion has already been available for XML DSL in Eclipse Desktop, Eclipse Che, Red Hat OpenShift.io, Visual Studio Code and IntelliJ. However, for Java DSL it was available only in IntelliJ. But Visual Studio Code and Eclipse Desktop are now also providing the Apache Camel URI completion for Java DSL.

Below, you can see it in action:

Everything you need to grow your career.

With your free Red Hat Developer program membership, unlock our library of cheat sheets and ebooks on next-generation application development.

SIGN UP

  • In Eclipse Desktop IDE:

Completion of Camel URI with Java DSL in Eclipse Desktop IDE

  • In Visual Studio Code:

Completion of Camel URI with Java DSL in VS Code

Right now, the requirements for URI completion are:

  • The filename needs to end with .java.
  • The file needs to contain camel written somewhere.
  • The Camel URI String needs to be used directly as a parameter of the RouteBuilder.from or RouteBuilder.to methods (which means no space, no variable).

You may ask, “What about Eclipse Che and OpenShift.io?” Work is in progress to make URI completion possible with them also. You can follow this issue to check on the progress.

As a reminder, it is now easy to install Apache Camel in all these environments; see my previous article describing the installation process.

If you have suggestions for improvements, please raise them in the issue tracker.

Enjoy this new feature!

 

Join the Red Hat Developer Program (it’s free) and get access to related cheat sheets, books, and product downloads.

Download and learn more about Red Hat JBoss Fuse, an innovative modular, cloud-ready architecture, powerful management and automation, and world class developer productivity. It is Java™ EE 7 certified and features powerful, enterprise-grade features such as high availability clustering, distributed caching, messaging, transactions, and a full web services stack.

Share