Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Riding the Apache Camel [Video]

DZone's Guide to

Riding the Apache Camel [Video]

You can now enable live reload of your Camel XML routes, which will trigger a reload on-the-fly whenever you save the XML file from your editor.

· Integration Zone
Free Resource

Share, secure, distribute, control, and monetize your APIs with the platform built with performance, time-to-value, and growth in mind. Free 90-day trial of 3Scale by Red Hat

Camel Live Reload of XML routes

It's been a while since I last did a Camel video. Today, I recorded a video of the upcoming live reload functionality in Camel 2.19.

You can now enable live reload of your Camel XML routes, which will trigger a reload on-the-fly whenever you save the XML file from your editor.

This is demonstrated in the short 5-minute video.

You can use the Camel live reload easily when using:

  • Camel standalone with Camel Main class.
  • Camel Spring Boot.
  • From the camel:run Maven plugin.

For other use cases, you can enable this manually be setting a ReloadStrategy on the CamelContext. We provide the FileWatcherReloadStrategy out of the box, which is what is used above as well. However, the idea is that end users can provide their own custom strategies as well.

We ship two examples out of the box which you can look at and try for yourself:

Explore the core elements of owning an API strategy and best practices for effective API programs. Download the API Owner's Manual, brought to you by 3Scale by Red Hat

Topics:
apache camel ,java ,xml ,integration

Published at DZone with permission of Claus Ibsen, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}