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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T13:40:33+00:00 2026-06-04T13:40:33+00:00

Is there any embedded persistence solution shipped with Camel API? I want to save

  • 0

Is there any embedded persistence solution shipped with Camel API? I want to save my dead letter messages. It can be done through DB or JMS queue but I want to avoid it while shipping to clients.
I read about HawtDB in ‘Camel In Action’. But it seems to be tightly coupled with Aggregator EIP.
Later i want to create a report on all the dead letter messages and show it to Client.

  • 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-04T13:40:34+00:00Added an answer on June 4, 2026 at 1:40 pm

    You can just use any persistence component to save your dead letter messages (Hibernate, JPA, JDBC, DB4O, etc.). In case of majority of persistence components you will not save the message itself, but selected (meta)data from it (the notable exception from that is the case of using DB4O component).

    For example if you’re sending Hibernates entities in messages, you can use Hibernate component:

    from("seda:deadMessageStore").
      setBody().groovy("new DeadMessageLog(request.headers, request.body) ").
      to("hibernate:com.foo.DeadMessageLog");
    errorHandler(deadLetterChannel("seda:deadMessageStore"));
    

    If you cannot predict what kind of classes will you send to the dead letter queue, consider using DB4O component. DB4O is extremely flexible in that matter since it allows you to store any Java object in the your queue (without explicit mapping, like in the case of the Hibernate or JPA).

    // store any Java object without transformations
    errorHandler(deadLetterChannel("db4o:java.lang.Object"))
    

    Also creating embedded DB40 container is very simple:

    ObjectContainer db = Db4oEmbedded.openFile(Db4oEmbedded.newConfiguration(), DB4OFILENAME);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any way to display a Google Map (embedded via the Javascript API)
Are there any embedded priority mechanisms in Netty that can help me to decide
Is there any way to stop the callout from automatically appearing on an embedded
I have a Windows Forms WebBrowser control embedded in my application. Is there any
Is there any way I can run class files (i.e. with main as the
is there any way to avoid this when using embedded web server in windows?
Are there any alternative to SQLite to use as embedded database engine?
Is there any SW to generate unit tests in C and embedded applications? The
I have a music player swf embedded on an html page. Is there any
If I have a ListView embedded in a WinForm, is there any way I

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.