Win a copy of Micro Frontends in Action this week in the Server-Side JavaScript and NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Spring/JMS/Camel : USE Camel Processor to delay send until a batch is accumulated

 
Ranch Hand
Posts: 608
Eclipse IDE Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am writing a logging framework whereby logger messages are sent via JMS to a central remote queue. I want to first batch the logger messages into a local pre-process queue until a certain number of messages has been batched. Once the batch size is reached I would like to send the batch to the central remote queue.

Sorry I have only just started using camel and I have an extremely tight deadline... I was hoping I could present what I am trying to achieve, followed by my current camel context declaration and someone could tell me what is the syntax to do so...

I am wondering how I can use a camel processor maybe with a choice element on the route from the local to the remote queue to implement this .. my current thinking is to have the local message consumer keep the collection of messages and then have something like :



This is what I have currently :



Your input would be greatly appreciated....
 
Get me the mayor's office! I need to tell him about this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic