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 8891549
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T22:46:31+00:00 2026-06-14T22:46:31+00:00

Problem Overview I’m using apache camel 2.4 and have been asked to setup an

  • 0

Problem Overview

I’m using apache camel 2.4 and have been asked to setup an internal messaging system in one of our maven/spring projects. This may seem a little weird but its because they have plans to separate some functionality out at a later date and want the integration side already covered.

Desired Functionality

Basically I have a bean (A) that does some processing and creates a serializable object. I have another bean (B) that accepts said serializable object and does some additional processing that we want to occur asynchronously.

The plan is to have bean (A) produce a message via the SEDA component of Camel and have it consumed by bean (B) internally.

What I’ve Done

So far I have implemented this by;

-Creating a RouteBuilder implementation that defines the route.

-Configuring my CamelContext in spring to use said route builder.

-Creating a “producer” class that has the CamelContext as a property and uses this to create a ProducerTemplate with which to send the message. – used by bean (A).

-Defining bean (B) as the consumer (via “bean:beanB” in the configured RouteBuilder).

Question

This works but, being new to Camel, i’m not sure if this is a very good way of implementing the desired functionality. Having looked further at the Camel docs its seems like there’s lots of different ways I could do the same thing (configuring the route in spring, rather than defining a RouteBuiler implementation, using the SedaEndpoint implementation, defining the ProducerTemplate in spring and using this as a dependency rather than the CamelContext itself…..).

What would be standard practice / best method for implementing the desired functionality?

  • 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-06-14T22:46:32+00:00Added an answer on June 14, 2026 at 10:46 pm

    you can wire things together various ways, but what you have described is pretty standard…

    that said, you might consider the following…

    • don’t create a new ProducerTemplate for each invocation of your producer (reuse it, etc.)
    • be aware of the expected messaging rates of the producer/consumer and possibly enable multi-threaded consumption using camel-seda concurrentConsumers property
    • use a newer version of Camel than 2.4 (currently at 2.10.2)
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Problem Overview: My application has an enrollment form. Users have a habit of entering
I just started a graphical C++ course and I have problem getting an overview
Reward: Has been claimed. Overview: The code giving me the problem is deployed here:
I have another orientation problem. But this one is very tricky. My RootViewController is
OverView I'm having problem with Ajax Tab Container ,I have added three tabs in
basic overview... i have a site setup in iis... - mysite (wwwroot\mysite) under that
I have to develop a tiny schedule overview. My problem are the events that
Here's an overview of my problem: I have a templated class called TWMatrix. I've
Problem Overview I have a dynamically produced web page, X , which consists of
Overview of the problem: I've been playing with writing custom http server apps for

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.