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

The Archive Base Latest Questions

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

I have a scenario where I am processing a large log file by ingesting

  • 0

I have a scenario where I am processing a large log file by ingesting it onto a Camel-based ESB. The first stop on this bus is a processor – LogTransformer – that parses log messages out of the log file, one by one (real-time), and creates XML snippets:

<log-record level="INFO" source="MyApp" .../>

Each one of these <log-record/> XML snippets gets put onto a message queue and gets picked up by the bus. Eventually it winds up in a MySQL DB.

I have certain processors that I want to kick off only after the log file is completely processed (all log records have been converted to <log-record/> and enqueued, processed by the bus, and stored to the DB). Things like report generators, BI components, etc. These processors shouldn’t begin until the entire log is enqueued.

What’s the Camel way of automatically indicating to these processors that they can kick off?

The best I can come up with is to have my LogTransformer processor (the part that parses log records, transforms them to <log-record> XML, and enqueues them) create an EOF log record after it finishes processing the log. Something like <log-record eof="true">. It then enqueues this message like normal.

When the last processor in the bus (which persists <log-record> to MySQL) encounters the EOF log record, instead of persisting it, it enqueues it on a queue.

These report generators, BI components, etc. wait for a message on this queue to kick off.

This solution seems convoluted. I’m brand new to ESBs, and Camel, so I figured there would be an EIP/processor that handles this scenario, but I can’t seem to find it. How would a Camel Wizard structure this 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-14T09:28:19+00:00Added an answer on June 14, 2026 at 9:28 am

    Have a look at Splitter (http://camel.apache.org/splitter.html) and Aggregator (http://camel.apache.org/aggregator2.html). The aggregator can use completionSize to determine that it has all of the pieces it needs to continue processing.

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

Sidebar

Related Questions

Scenario I have a windows service written in C# that performs some processing based
I have this scenario well, i'll let the model explain. public class ScheduleMonthlyPerDayModel {
I don't have a specific scenario in mind, but this question just crossed my
Wanted to create a fun app with photo. This is the scenario: I have
This the scenario have. There's an SSRS server that has a report where the
I have been looking in to Spring Batch to solve a batch processing scenario
I have this scenario: WServer 2008, SQL Server 2005, MS Analysis services (SSAS), ISS7
Scenario: I have a huge .csv file (million of lines) . With sqlldr (SQL
Scenario I have a very heavy number-crunching process that pools large datasets from 3
I have a class A which reads an XML file and does some processing.

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.