aspose file tools*
The moose likes Spring and the fly likes Spring/JMS/Camel :  USE Camel Processor to delay send until a batch is accumulated Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Spring/JMS/Camel :  USE Camel Processor to delay send until a batch is accumulated" Watch "Spring/JMS/Camel :  USE Camel Processor to delay send until a batch is accumulated" New topic
Author

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

Duran Harris
Ranch Hand

Joined: Nov 09, 2008
Posts: 598

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....


===>SCJP 1.5(72%)<===
==>SCWCD1.5(76%)<===
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Spring/JMS/Camel : USE Camel Processor to delay send until a batch is accumulated