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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T01:03:01+00:00 2026-06-14T01:03:01+00:00

I have a Camel route such as: <route errorHandlerRef=myDeadLetterErrorHandler> <from uri=activemq:queue:source/> <to uri=activemq:queue:destA> <to

  • 0

I have a Camel route such as:

<route errorHandlerRef="myDeadLetterErrorHandler">
    <from uri="activemq:queue:source"/>
    <to uri="activemq:queue:destA">
    <to uri="activemq:queue:destB">
    <to uri="activemq:queue:destC">
</route>

When one endpoint fail, I set a redeliveryPolicy to retry to send the message some times and if it always fail the message is redelivered to the DeadLetter Queue.

Now I’m looking for a method to send the message from the deadletter queue to the failure endpoint.. does someone have any suggestions?

I was thinking to build a processor that extract the info of the failure endpoint like this:

String lastEndpointUri = exchange.getProperty(Exchange.TO_ENDPOINT, String.class);

And then build some kind of dynamic routing… isn’t there a simpler solution?

  • 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-14T01:03:02+00:00Added an answer on June 14, 2026 at 1:03 am

    Thanks all for the answers, I have quickly resolved the problem putting endpoints in a separate routing and setting the same redeliveryPolicy to eachone.

        <route>
            <from uri="activemq:queue:source"/>
            <to uri="activemq:queue:destA1">
            <to uri="activemq:queue:destB1">
            <to uri="activemq:queue:destC1">
        </route>
    
    <route errorHandlerRef="myDeadLetterErrorHandler">
        <from uri="activemq:queue:destA1"/>
        <to uri="activemq:queue:destA">
    </route>
    
    <route errorHandlerRef="myDeadLetterErrorHandler">
        <from uri="activemq:queue:destB1"/>
        <to uri="activemq:queue:destB">
    </route>
    
    ...
    

    In this way the message will always be delivered to every endpoint also if one fail and when the failure endpoint will come back the messages will be redelivered.

    I think that the solution proposed by boday is correct and probably I’ll try that one in the future.
    I’ve also discovered that if the total message order is not important we can use also “Broker Redelivery” that use a special queue to redeliver each message.
    http://activemq.apache.org/message-redelivery-and-dlq-handling.html

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

Sidebar

Related Questions

I have defined a camel jetty-activemq route as below: from(jetty:http://0.0.0.0:8087/url1).to(activemq:queue:queue1) Does camel create an
I have a Camel Route Definition written in Java DSL like this: from(myEndpoint) .throttle(200)
I have a camel route: from(file:///u01/www/images/nonprofits-test?move=.done&preMove=.processing&filter=#nonpFileFilter&minDepth=2&recursive=true) Later on in the route I need to
I have an apache servicemix (camel 2.9) route which calls a bean, that in
I have given client's queue connection details to connect to it using Camel. While
I have a servicemix module, which is basicly a camel based route. It works
I'm testing a camel round but when I have the route try to access
I have Camel route that I would like to expose as a REST Web
I'm trying to run a smooks transformation in a camel route. I have seen
Have to throw an exception in my camel route defined in XML. Found throwException

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.