Using VS Code to develop Spring Boot-based Camel and Red Hat Fuse projects

Using VS Code to develop Spring Boot-based Camel and Red Hat Fuse projects

Developing Apache Camel and Red Hat Fuse applications inside VS Code is improving! In my previous articles, I’ve mentioned that Camel URI completion is available in VS Code for XML and Java DSL. By leveraging several VS Code extensions, it is now possible to have an end-to-end development experience. The Camel tooling currently available in VS Code is primarily targeting Spring Boot– based Camel applications. The tooling covers the development process from creating a Camel project, testing, and debugging it locally, to automatically-rebuilding and redeploying it on your local OpenShift/Kubernetes instance when you make changes.

There are several ways to leverage the VS Code tooling. I will show the process which I believe is the easiest one to get started with.

With VS Code extensions, you can do the following in VS Code:

  • Create a Fuse project
  • Auto-completion of Camel URI
  • Launch a test
  • Debug Java on your local machine
  • Deploy to a local OpenShift instance (Red Hat Container Development Kit/minishift)
  • Auto-redeployment to OpenShift

Let’s see it in a video:

 

Extensions used

The five extensions in the screenshot are very useful for Camel development. They are the ones that are used in the previous video.  You can use this line in the search bar to find them easily:

“Spring Boot Extension Pack” | “Java Extension Pack” | “Project Initializer by Red Hat” | “OpenShift Connector” | “Language Support for Apache Camel”

What’s next?

We need your feedback and you can help shape the future of the tools for Red Hat Fuse/Camel. There are still known limitations. Please try the extensions and vote for, or report, the additional features that you would like to see the most.

Related Articles

Share