Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7541185
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T07:49:46+00:00 2026-05-30T07:49:46+00:00

In a Camel route, should I be thinking about putting my business logic in

  • 0

In a Camel route, should I be thinking about putting my business logic in a discretely hosted bean endpoint, like a message-driven bean or a web service, vs just implementing it in Camel processors?

It seems like cleaner separation of concerns to use Camel just for mediation & orchestration, using Processors as filters, rather than as a container for business logic. However I don’t forsee the need for an EJB container at this time, and it seems like I’d need one to host MDBs.

So cleaner architecture vs smaller footprint, fewer technologies – Does anyone have thoughts, perspectives, or strong feelings about this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T07:49:48+00:00Added an answer on May 30, 2026 at 7:49 am

    I generally use Camel to perform the following…

    • any component integration (file, jms, http, etc)
    • to implement EIP logic (content based routing, filters, throttling, etc.)
    • timer based processes (using timer or quartz)
    • exception handling (retry logic, error logging/notification/queueing)

    Otherwise, for business logic that is self contained (especially legacy integration), it may be preferable to use POJOs or WebServices. This promotes testability and makes your application more modular, etc. Then, you can use Camel for the following…

    • to interface with these services using Processors, Bean Binding and CXF
    • to wire these services together into routes
    • manage/monitor message flow, exception handling

    In regards to long running processes, Camel can facilitate this via various asycnhronous patterns/technologies (JMS, CXF, polling consumers, scheduled jobs, etc.) as well as gives you control over threading…

    That all said, there are many ways to slice it. Camel is lightweight, flexible and designed to ease integration with existing technologies, not replace them…good luck

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an apache servicemix (camel 2.9) route which calls a bean, that in
I would like to implement a distinct thread for each route in apache camel.I
I have a Camel Route Definition written in Java DSL like this: from(myEndpoint) .throttle(200)
Is it possible to configure a Camel route to send a message to a
I use java implementation for Camel. Should I use different class for each route
I have Camel route that I would like to expose as a REST Web
I created a camel route without INOUT exchange pattern and the route looks like
I'm attempting to use a Camel route to send a POST message to a
my camel route is given below <camelContext id=camel xmlns=http://camel.apache.org/schema/spring > <route> <from uri=bean:SendClass?method=send />
I'm trying to create an Apache Camel route that sends a jms message to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.