Este conteúdo não está disponível no idioma selecionado.

Chapter 3. Language support for Camel


Important

The VS Code extensions for Apache Camel are listed as development support. For more information about scope of development support, see Development Support Scope of Coverage for Red Hat Build of Apache Camel.

3.1. Language support for Apache Camel extension

The Visual Studio Code language support extension adds the language support for Apache Camel for XML DSL and Java DSL code.

This extension provides completion, validation and documentation features for Apache Camel URI elements directly in your Visual Studio Code editor. It works as a client using the Microsoft Language Server Protocol which communicates with Camel Language Server to provide all functionalities.

3.1.1. Features of language support for Apache Camel extension

The important features of the language support extension are listed below:

  • Language service support for Apache Camel URIs.
  • Quick reference documentation when you hover the cursor over a Camel component.
  • Diagnostics for Camel URIs.
  • Navigation for Java and XML languages.
  • Creating a Camel Route specified with Yaml DSL using Camel CLI.
  • Create a Camel Quarkus project
  • Create a Camel on SpringBoot project
  • Specific Camel Catalog Version
  • Specific Runtime provider for the Camel Catalog

3.1.2. Requirements

The following points must be considered when using the Apache Camel Language Server:

  • Java 17 is currently required to launch the Apache Camel Language Server. The java.home VS Code option is used to use a different version of JDK than the default one installed on the machine.
  • For some features, JBang must be available on a system command line.
  • For an XML DSL files:

  • For a Java DSL files:

    • Use a .java file extension.
    • Specify the Camel package(usually from an imported package), for example, import org.apache.camel.builder.RouteBuilder.
    • To reference the Camel component, use from or to and a string without a space. The string cannot be a variable. For example, from("timer:timerName") works, but from( "timer:timerName") and from(aVariable) do not work.

3.1.3. Installing Language support for Apache Camel extension

You can download the Language support for Apache Camel extension from the VS Code Extension Marketplace and the Open VSX Registry. You can also install the Language Support for Apache Camel extension directly in the Microsoft VS Code.

Procedure

  1. Open the VS Code editor.
  2. In the VS Code editor, select View > Extensions.
  3. In the search bar, type Camel. Select the Language Support for Apache Camel option from the search results and then click Install.

This installs the language support extension in your editor.

3.1.4. Using specific Camel catalog version

You can use the specific Camel catalog version. Click File > Preferences > Settings > Apache Camel Tooling > Camel catalog version. For Red Hat productized version that contains redhat in its version identifier, the Maven Red Hat repository is automatically added.

Note

For the first time a version is used, it takes several seconds/minutes to have it available depending on the time to download the dependencies in the background.

3.1.5. Limitations

  • The Kamelet catalog used is community supported version only. For the list of supported Kamelets, see link: Supported Kamelets
  • Modeline configuration is based on community only. Not all traits and modeline parameters are supported.
Voltar ao topo
Red Hat logoGithubredditYoutubeTwitter

Aprender

Experimente, compre e venda

Comunidades

Sobre a documentação da Red Hat

Ajudamos os usuários da Red Hat a inovar e atingir seus objetivos com nossos produtos e serviços com conteúdo em que podem confiar. Explore nossas atualizações recentes.

Tornando o open source mais inclusivo

A Red Hat está comprometida em substituir a linguagem problemática em nosso código, documentação e propriedades da web. Para mais detalhes veja o Blog da Red Hat.

Sobre a Red Hat

Fornecemos soluções robustas que facilitam o trabalho das empresas em plataformas e ambientes, desde o data center principal até a borda da rede.

Theme

© 2025 Red Hat