Skip to main content
AI
  • Get started with AI

    • Red Hat AI

      Accelerate the development and deployment of enterprise AI solutions.

    • AI learning hub

      Explore learning materials and tools, organized by task.

    • AI interactive demos

      Click through scenarios with Red Hat AI, including training LLMs and more.

  • Featured resources

    • OpenShift AI learning
    • Open source AI for developers
    • AI product application development
    • Open source-powered AI/ML for hybrid cloud
    • AI and Node.js cheat sheet
  • Red Hat AI Factory with NVIDIA

    • Red Hat AI Factory with NVIDIA is a co-engineered, enterprise-grade AI solution for building, deploying, and managing AI at scale across hybrid cloud environments.
    • Explore the solution
Learn
  • Self-guided

    • Documentation

      Find answers, get step-by-step guidance, and learn how to use Red Hat products.

    • Learning paths

      Explore curated walkthroughs for common development tasks.

    • Guided learning

      Receive custom learning paths powered by our AI assistant.

    • See all learning
  • Hands-on

    • Developer Sandbox

      Spin up Red Hat's products and technologies without setup or configuration.

    • Interactive labs

      Learn by doing in these hands-on, browser-based experiences.

    • Interactive demos

      Click through product features in these guided tours.

  • Browse by topic

    • AI/ML
    • Automation
    • Java
    • Kubernetes
    • Linux
    • See all topics
  • Training & certifications

    • Courses and exams
    • Certifications
    • Skills assessments
    • Red Hat Academy
    • Learning subscription
    • Explore training
Build
  • Get started

    • Red Hat build of Podman Desktop

      A downloadable, local development hub to experiment with our products and builds.

    • Developer Sandbox

      Spin up Red Hat's products and technologies without setup or configuration.

  • Download products

    • Access product downloads to start building and testing right away.
    • Red Hat Enterprise Linux
    • Red Hat AI
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform
    • See all products
  • Featured

    • Red Hat build of OpenJDK
    • Red Hat JBoss Enterprise Application Platform
    • Red Hat OpenShift Dev Spaces
    • Red Hat Developer Toolset
  • References

    • E-books
    • Documentation
    • Cheat sheets
    • Architecture center
Community
  • Get involved

    • Events
    • Live AI events
    • Red Hat Summit
    • Red Hat Accelerators
    • Community discussions
  • Follow along

    • Articles & blogs
    • Developer newsletter
    • Videos
    • Github
  • Get help

    • Customer service
    • Customer support
    • Regional contacts
    • Find a partner
  • Join the Red Hat Developer program

    • Download Red Hat products and project builds, access support documentation, learning content, and more.
    • Explore the benefits
ConsoleDocsSupport Search
New For you

Recommended

We'll recommend resources you may like as you browse. Try these suggestions for now.

  • Product downloads
  • Red Hat Developer learning portal
  • Developer blog
  • Cheat Sheets
  • E-books
  • Developer Sandbox
Log in

Get more with a Red Hat Developer account

  • Product downloads
  • Console access
  • Event registration
  • Training & trials
Explore more account benefitsLog in or register

A subscription may be required for some services.

Contact us

How to simplify the Camel developer experience in VS Code

October 23, 2023
Dominik Jelinek
Related topics:
Developer tools
Related products:
Developer Toolset

    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

    • What's new for developers in Red Hat Enterprise Linux 10.3 and 9.9

    • Control multicluster costs with right-sizing in Red Hat Advanced Cluster Management 5

    • Lightbits is now certified for Red Hat OpenStack Services on OpenShift

    • What's new in Red Hat OpenShift 5 for developers

    • On-demand screen context in Red Hat Developer Hub intelligent assistant

    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

    Platforms

    • Red Hat AI
    • Red Hat Enterprise Linux
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform
    • See all products

    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
    © 2026 Red Hat

    Red Hat legal and privacy links

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