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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T11:16:07+00:00 2026-05-28T11:16:07+00:00

First a basic out line of what I am trying to do I have

  • 0

First a basic out line of what I am trying to do

  1. I have a MQ that I want to read messages from
  2. Preprocess the XML, and set a property on the Exchange
  3. Make a HTTP request
  4. Process data from http request and from the property on the initial exchange
  5. Put it on an outbound message Queue

I have been looking around to confirm that each time that a message is read off of the initial MQ that a new Exchange will be created. I haven’t been able to find anything that says that explicitly, but I am assuming and was wondering if someone could confirm or deny that is the case.

Is an exchange only used once? And does a route create a new exchange for each message that comes in?

Thanks!

EDIT: And of course my pair then immediately googles and finds the answer. Yes it is unique and we found the documentation on the Exchange API here http://camel.apache.org/maven/current/camel-core/apidocs/org/apache/camel/Exchange.html

  • 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-28T11:16:08+00:00Added an answer on May 28, 2026 at 11:16 am

    For the most part, an Exchange is created for each consumer thread of a route. The one exception (that I know of) is using the “direct” endpoint, which will reuse an existing Exchange (if one exists already in the request)…

    For example, these 2 routes chained together (via direct). The first route will create a new Exchange and will pass it along to the second route (see the logged exchangeId)…

    from("direct:route1").log("route1.exchangeId=${exchangeId}").to("direct:route2");
    from("direct:route2").log("route2.exchangeId=${exchangeId}");
    

    But, if you were to chain them together with any other component (seda, vm, activemq, etc), then a new Exchange would be created for the 2nd route.

    from("seda:route1").log("route1.exchangeId=${exchangeId}").to("seda:route2");
    from("seda:route2").log("route2.exchangeId=${exchangeId}");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Ok, after failing to read a polynomial, I'm trying first a basic approach to
I have a real basic command-line program, in Objective-C, that searches for user inputed
Just looking for the first step basic solution here that keeps the honest people
I want to run a basic query, but return only the first ten rows
This is very basic magento question i guess. I want to first get all
I'm working through the Stanford iPhone podcasts and have some basic questions. The first:
I have recently updated a Visual Basic 6 application that is an ActiveX exe,
Im trying to learn how to set up a Zend framework web application from
This is a strange one that I cannot see to figure out. I have
I have a basic MVC 2 beta app where I am trying to implement

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.