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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T09:35:49+00:00 2026-06-17T09:35:49+00:00

I am experimenting with Camel and finding it a convenient tool for endpoint integration.

  • 0

I am experimenting with Camel and finding it a convenient tool for endpoint integration. I’ve set up the following experimental application:

The first endpoint is a simple http-get request (using curl on the command line). This interfaces with a central switch using Jetty (this is the Camel-based app). This does some elementary tinkering and passes the request to another endpoint (a Thrift server) which handles the request. Its reponse is then routed back to the command-line client. The set up is therefore a kind of tier-3 over-engineered Hello-world architecture.

My routes typically takes this form:

from("jetty:http://localhost:8080/hello").process(new DummyProcessor()).process(new HelloProcessor());

My question is as follows:

Given that the HelloProcessor sends a Thrift message to another endpoint to process, shouldn’t this rather be a Component? Is it good (acceptable) practise to use a Processor for such a task? Furthermore, what are the advantages for writing a component if it is indeed acceptable.

  • 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-17T09:35:49+00:00Added an answer on June 17, 2026 at 9:35 am

    There are not really any benefits in writing a component if you are going to use it in one or a few routes.

    If you intend to use this processor in multiple routes in the future, and you need a way to configure it by some parameters – then you typically write your own component. It also perhaps makes the route more readable. A component is also an easy artifact to share between different Camel applications and projects.

    from("file:///var/files/inbox").to("http://www.example.com/");
    vs
    from("file:///var/files/inbox").process(sendHttpToExampleDotComProcessor); // or whatever
    

    If it’s a one time use – don’t overcomplicate.

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

Sidebar

Related Questions

I have a simple Camel application that is tracing to a JMS endpoint. I
Using some code here: http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/2012/09/19/experimenting-with-windows-azure-mobile-services.aspx ...as inspiration for querying a WAMS table, I came
I'm interested in experimenting with embedding Python in my application, to let the user
im experimenting in getting camel to do some file operations and pass them through
I am experimenting with synth styles and i came across the following problem for
I'm just experimenting first of all. I just came up with an idea of
Experimenting with MongoID on a Rails server and confused about how/where to set the
I've been experimenting with implementing Set equality (ie List comparisons where the order is
I am currently experimenting with JPA in a desktop application, while using BeansBinding to
I'm experimenting a bit with Apache Camel to propose it to my boss as

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.