# Extending Your Quarkus Application with Apache Camel

DevFeed: [Extending Your Quarkus Application with Apache Camel](<https://devfeed.tech/articles/extending-your-quarkus-application-with-apache-camel-113383.md>)

Original publisher: [Read original article](<https://quarkus.io/blog/extending-quarkus-with-camel/>)

Author: Gaelle Fournier

Published: 2026-10-23T00:00:00Z

Content type: tutorial

Language: en

Sources: [Quarkus - Supersonic Subatomic Java](<https://devfeed.tech/sources/quarkus-supersonic-subatomic-java.md>)

Topics: [Quarkus](<https://devfeed.tech/topics/quarkus.md>), [Apache Kafka](<https://devfeed.tech/topics/apache-kafka.md>), [REST API](<https://devfeed.tech/topics/rest-api.md>), [Publish-subscribe pattern](<https://devfeed.tech/topics/pubsub.md>)

Tags: [apache-camel](<https://devfeed.tech/tags/apache-camel.md>), [api](<https://devfeed.tech/tags/api.md>), [csv](<https://devfeed.tech/tags/csv.md>), [file](<https://devfeed.tech/tags/file.md>), [integration](<https://devfeed.tech/tags/integration.md>), [kafka](<https://devfeed.tech/tags/kafka.md>), [quarkus](<https://devfeed.tech/tags/quarkus.md>), [rest-api](<https://devfeed.tech/tags/rest-api.md>)

## AI overview

The excerpt shows how to extend a Quarkus order API with Camel Quarkus routes for three integration tasks: publish orders as JSON to Kafka, notify a loyalty API over HTTP with up to three retries using exponential backoff, and ingest CSV files into the existing repository while moving processed and failed files to separate directories. A `ProducerTemplate` call connects the existing REST endpoint to the Kafka and HTTP route; CSV ingestion runs in a separate file route. The example notes the retry policy applies to Kafka steps too, and exhausted retries are logged and handled while the order remains persisted. It presents Camel's shared route model as useful as integrations grow, while stating that Quarkus Reactive Messaging is enough for a single Kafka topic.

## Source excerpt

Introduction You built a standard Quarkus application: REST endpoints, a service layer, a database. Then you are given a new requirement: "When an order is placed, send an event to Kafka so the analytics team can track it." A week later another one: "Also notify the partner loyalty system via their REST API and make sure to handle it properly when their API is down." And another one: "The partner is going to start sending us CSV order files."... Each of these requirements is an integration task, and Quarkus already gives you building blocks for all of them: Reactive Messaging for Kafka, the REST client with fault tolerance for the loyalty API, a scheduled job for file polling. But you could also hand all three to Apache Camel, which covers them with a single model. Retry with backoff, error policies, JSON and CSV conversion, file polling that moves handled files aside: each one is a built-in step you declare on a route, a line at a time, in the same vocabulary whichever system you are talking to. And it runs inside the application you already have. Camel Quarkus packages over 300 of Camel's components as Quarkus extensions, as natural to use as any other CDI bean. In this post we start from a working Quarkus REST application and progressively extend it with three integration capabilities using Camel. You'll see exactly what changes in your existing code and what stays untouched. The starting point Here's what we're starting with: a simple order management REST API. @Path("/api/orders") @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON) public class OrderResource { @Inject OrderRepository repository; @GET public List<Order> list() { return repository.listAll(); } @POST public Response create(Order order) { repository.add(order); return Response.status(Response.Status.CREATED).entity(order).build(); } } Order is a POJO with four fields (id, customer, type, amount), a no-arg constructor and an all-args one. OrderRepository is an @ApplicationScop