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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T13:27:31+00:00 2026-06-16T13:27:31+00:00

Let’s say I have a Job Scheduler which has 4 consumers A, B, C

  • 0

Let’s say I have a Job Scheduler which has 4 consumers A, B, C and D. Jobs of type X will have to be routed to Consumer A, type Y to Consumer B and so on. Consumers A, B, C and D are to run as independent applications without any dependency, either locally or remotely.

The consumers take varying times to complete their jobs, which are subsequently routed to the Job Scheduler for aggregation.

Clones of one of the consumers may also be needed to share its eligible jobs. A job should however be processed only once.

Is Content-based router the best solution for this? Mind you, I need the custom job scheduler, because it only has the intelligence to split up a job among the consumers.

Or is there any better way to handle this? I don’t require those features of the broker like automatically switching over to another consumer (load balancing) and such in case of a failure.

  • 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-16T13:27:33+00:00Added an answer on June 16, 2026 at 1:27 pm

    I’m not completly sure that I follow you. This sounds like a rather straight forward scenario for asychronous processing.

    I’m not sure how you plan to send these jobs to the Camel application, but given you can receive them somewhere you could probably go ahead with a simple content based router.

    Given your requirements for the consumers, I would go for JMS queues (using Apache ActiveMQ or similar broker middleware), one queue per job type. This makes it easy to distribute consumers to different machines without really changing the code.

    // Central node routes
    from("xxx:routeJob")
       .choice()
           .when(header("type").isEqualTo("x"))
               .to("jms:queue:processJobTypeX")
           .when(header("type").isEqualTo("y"))
               .to("jms:queue:processJobTypeY")
           .otherwise()
               .to("jms:queue:processJobTypeZ"); 
    
     from("jms:queue:aggregateJob")
        .bean(aggregate);
    
    // different camel application (may be duplicated for multiple instances).
    from("jms:queue:processJobTypeX")
      .bean(heavyProcessing)
      .to("jms:queue:aggregateJob");
    
    // Yet another camel application
    from("jms:queue:processJobTypeY")
      .bean(lightProcessing)
      .to("jms:queue:aggregateJob");
    

    Please revisit your question for a better answer 🙂

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

Sidebar

Related Questions

Let's say I have one class User, and it has a property of type
Let's say I have a method in java, which looks up a user in
Let's say I have a main folder in my website named test which contains
Let's say you have a class library project that has any number of supplemental
Let's say I'm creating an OpenGL game in C++ that will have many objects
Let's say I have two objects, Master and Slave . Slave has a method
Let's say I have a dataset, which can be neatly classified using weka's J48
Let's say I have two assemblies: BusinessLogic and Web. BusinessLogic has an application setting
Let's say I don't have photoshop, but I want to make pattern files (.pat)
Let me explain best with an example. Say you have node class that can

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.