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

  • Home
  • SEARCH
  • 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 9182075
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T18:28:30+00:00 2026-06-17T18:28:30+00:00

I have to stock my object (CcRequest) in a DeadLetterQueue with Json format. How

  • 0

I have to stock my object (CcRequest) in a DeadLetterQueue with Json format.

How it is possible ?

Here my simple context :

<camelContext id="el1DMRCamelContext" autoStartup="true" xmlns="http://camel.apache.org/schema/blueprint" >

    <template id="producerTemplate" />

    <!-- Routes -->
    <route id="createCcProcessorRoute" errorHandlerRef="createCcErrorHandler" >
        <from uri="activemq:queue:createCc" />
        <process ref="createCcProcessor" />
    </route>
</camelContext>

<bean id="createCcErrorHandler" class="org.apache.camel.builder.DeadLetterChannelBuilder" >
    <property name="deadLetterUri" value="activemq:queue:createCcDLQ" />
    <property name="redeliveryPolicy" ref="redeliveryPolicy" />
</bean>

I would like my object (CcRequest stocked in the body of the exchange) in my activemq:queue:createCcDLQ to be in Json format instead of binaries.

Is it possible ?

  • 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-17T18:28:31+00:00Added an answer on June 17, 2026 at 6:28 pm

    I would not classify what you want to do as a dead letter handler. Dead letter is usually just moving/redelivery of the original message.

    It is pretty simple you use the excetion clause instead.

    <dataFormats>
        <json id="jsonFormat" library="Jackson"/>
    </dataFormats>
    
    
    <onException>
      <exception>java.lang.RuntimeException</exception>
      <marshal ref="jsonFormat"/>
      <to uri="activemq:queue:createCcDLQ"/>
    </onException>
    

    Camel Exception Clause docs

    Camel JSON docs

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

Sidebar

Related Questions

I have a xts object (stock price time series) that is comprised of intraday
I have an xml with following structure <xml> <object context=3-cumulative > <metadata> <ref cite=4.2
I have a JSON output that I need to deserialize into a .NET object:
Ok, I have codeigniter as my MVC, and I have the stock facebook sdk
I have two entities STOCK(name,amount) and PC_SYSTEMS(name,c_name), and i wish to update the components
My problem is that I have three different stock sizes for each product that
need help/guide for sql select query, I have 2 table stock and stock_history, in
I have a table called Stock and another called Listed, within the Stock Table
I have a field in my database called 'Stock'. It displays how many items
I have three domain class class Stock { Product product } and class Product

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.