Skip to main content
Redhat Developers  Logo
  • Products

    Platforms

    • Red Hat Enterprise Linux
      Red Hat Enterprise Linux Icon
    • Red Hat AI
      Red Hat AI
    • Red Hat OpenShift
      Openshift icon
    • Red Hat Ansible Automation Platform
      Ansible icon
    • View All Red Hat Products

    Featured

    • Red Hat build of OpenJDK
    • Red Hat Developer Hub
    • Red Hat JBoss Enterprise Application Platform
    • Red Hat OpenShift Dev Spaces
    • Red Hat OpenShift Local
    • Red Hat Developer Sandbox

      Try Red Hat products and technologies without setup or configuration fees for 30 days with this shared Openshift and Kubernetes cluster.
    • Try at no cost
  • Technologies

    Featured

    • AI/ML
      AI/ML Icon
    • Linux
      Linux Icon
    • Kubernetes
      Cloud icon
    • Automation
      Automation Icon showing arrows moving in a circle around a gear
    • View All Technologies
    • Programming Languages & Frameworks

      • Java
      • Python
      • JavaScript
    • System Design & Architecture

      • Red Hat architecture and design patterns
      • Microservices
      • Event-Driven Architecture
      • Databases
    • Developer Productivity

      • Developer productivity
      • Developer Tools
      • GitOps
    • Automated Data Processing

      • AI/ML
      • Data Science
      • Apache Kafka on Kubernetes
    • Platform Engineering

      • DevOps
      • DevSecOps
      • Ansible automation for applications and services
    • Secure Development & Architectures

      • Security
      • Secure coding
  • Learn

    Featured

    • Kubernetes & Cloud Native
      Openshift icon
    • Linux
      Rhel icon
    • Automation
      Ansible cloud icon
    • AI/ML
      AI/ML Icon
    • View All Learning Resources

    E-Books

    • GitOps Cookbook
    • Podman in Action
    • Kubernetes Operators
    • The Path to GitOps
    • View All E-books

    Cheat Sheets

    • Linux Commands
    • Bash Commands
    • Git
    • systemd Commands
    • View All Cheat Sheets

    Documentation

    • Product Documentation
    • API Catalog
    • Legacy Documentation
  • Developer Sandbox

    Developer Sandbox

    • Access Red Hat’s products and technologies without setup or configuration, and start developing quicker than ever before with our new, no-cost sandbox environments.
    • Explore Developer Sandbox

    Featured Developer Sandbox activities

    • Get started with your Developer Sandbox
    • OpenShift virtualization and application modernization using the Developer Sandbox
    • Explore all Developer Sandbox activities

    Ready to start developing apps?

    • Try at no cost
  • Blog
  • Events
  • Videos

How to simplify the Camel developer experience in VS Code

October 23, 2023
Dominik Jelinek
Related topics:
Developer Tools
Related products:
Developer Tools

Share:

    Apache Camel is an open source integration framework based on well known Enterprise Integration Patterns. It allows us to define routing rules in various domain-specific languages (such as YAML, XML, Java, etc).

    To easily run integrations (Camel routes) built with Apache Camel there exists Camel JBang, a JBang based application. We are aiming the Visual Studio Code, one of the most popular source code editors, which are lightweight, powerful and able to run on your desktop.

    In this article we will discuss the Extension Pack for Apache Camel provided by Red Hat. This collection of extensions was chosen to simplify Camel developer experience in VS Code. For basic scenario we will need namely three extensions from this pack:

    • Language Support for Apache Camel,
    • Debug Adapter for Apache Camel,
    • and Kaoto.

    Create an integration

    The Language Support for Apache Camel extension for VS Code is adding new Camel commands. These commands allows to user easily initialize a new example of Camel route through VS Code command palette. The commands are grouped under Camel category. To have commands available, you need to have some already existing workspace opened in VS Code. When command is called, the user is asked only to provide a file name and Camel route will be generated (Figure 1).

    An animated gif of the initialization of Camel file with JBang.
    Figure 1: The initialization of Camel route using XML DSL with JBang.

    Run an integration

    To run existing Camel integrations, you will need to install Debug Adapter for Apache Camel. This VS Code extension add capabilities to run or run and debug integrations with Camel JBang. You can call commands from VS Code command palette, use context menu available by right-clicking on the integration file, or one-click buttons placed at the top right corner of the opened editor with a valid Camel route.

    The run with JBang option supports by default the automatic reloading feature of Camel JBang. This allows to update values of already running integration, and you will see new changes immediately without need of stop and rerun current execution (Figure 2).

    An animated gif showing the one-click local run of Camel integration with JBang.
    Figure 2: The one-click local run of Camel integration with JBang.

    Edit an integration

    If you prefer to see a visualization of the Camel route or modifications easily with an UI, then the VS Code extension named Kaoto – No Code and Low Code graphical integration editor is a really nice experience. It accelerates new users and helps experienced developers to quickly build and see their Camel integrations (Figure 3).

    A screenshot of the Kaoto graphical editor.
    Figure 3: Edit property of Camel component through graphical Kaoto editor.

    Getting started with VS Code for Apache Camel

    The following 2-minute video shows how to get started with VS Code for Apache Camel.

    What's next?

    We would be more than happy for your feedback. If you spot bugs or have a request, you can open issues on GitHub or the JIRA project. For more advanced use cases, take a look at the Demo of Red Hat Integration and Apache Camel tooling.

    Last updated: November 8, 2023

    Related Posts

    • Apache Camel Language support in CodeMirror

    • Sending a telegram with Apache Camel K and Visual Studio Code

    • Getting started with Red Hat Integration service registry

    • How to use the VS Code Tekton Pipelines extension

    Recent Posts

    • A deep dive into Apache Kafka's KRaft protocol

    • Staying ahead of artificial intelligence threats

    • Strengthen privacy and security with encrypted DNS in RHEL

    • How to enable Ansible Lightspeed intelligent assistant

    • Why some agentic AI developers are moving code from Python to Rust

    What’s up next?

    Learn how to create an Apache Camel integration and deploy it as a serverless service using the VS Code extension Karavan.

    Start learning
    Red Hat Developers logo LinkedIn YouTube Twitter Facebook

    Products

    • Red Hat Enterprise Linux
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform

    Build

    • Developer Sandbox
    • Developer Tools
    • Interactive Tutorials
    • API Catalog

    Quicklinks

    • Learning Resources
    • E-books
    • Cheat Sheets
    • Blog
    • Events
    • Newsletter

    Communicate

    • About us
    • Contact sales
    • Find a partner
    • Report a website issue
    • Site Status Dashboard
    • Report a security problem

    RED HAT DEVELOPER

    Build here. Go anywhere.

    We serve the builders. The problem solvers who create careers with code.

    Join us if you’re a developer, software engineer, web designer, front-end designer, UX designer, computer scientist, architect, tester, product manager, project manager or team lead.

    Sign me up

    Red Hat legal and privacy links

    • About Red Hat
    • Jobs
    • Events
    • Locations
    • Contact Red Hat
    • Red Hat Blog
    • Inclusion at Red Hat
    • Cool Stuff Store
    • Red Hat Summit
    © 2025 Red Hat

    Red Hat legal and privacy links

    • Privacy statement
    • Terms of use
    • All policies and guidelines
    • Digital accessibility

    Report a website issue