Results 1 to 4 of 4

Thread: Require Aggregator Sample code

  1. #1
    Join Date
    Sep 2010
    Posts
    23

    Default Require Aggregator Sample code

    Hi All,
    I am struggling with crazy aggregator.
    Can any one help me on how to configure Aggregator which in connected to Queue channel inorder to group messages based on the time interval.

    QueueChannel --> Aggregator --> (grouped messages)

    Thanks in Advance,
    Mohan Reddy. M

  2. #2
    Join Date
    Oct 2005
    Location
    Boston, MA
    Posts
    2,840

    Default

    To control the criteria for grouping, you should consider implementing a CorrelationStrategy and referencing that from the <aggregator>.

    Can you describe the use-case a bit more?... how do you determine the time interval and/or how do you determine completeness for any given group?

  3. #3
    Join Date
    Sep 2010
    Posts
    23

    Default

    Thank you Fisher for your quick reply..
    Here I am trying to group all the messages which are coming from QueueChannel within a timeout period. As per the reference manual of SI, Aggregator should group all the messages with default correlationStrategy. I added correlation_id for all the messages which are in QueueChannel and configured aggregator with timeout and sendtimeout attributes. However, Aggregator is not grouping the messages.

    If Can you please provide a sample with aggregator which will group the messages in a certain time period.

    Thanks
    Mohan Reddy.M

  4. #4
    Join Date
    Jan 2008
    Location
    Mohnton, PA USA (that's near Philadelphia)
    Posts
    2,148

    Default

    Have you looked at the 'loan-broker' sample which uses an aggregator.
    http://blog.springsource.com/2010/09...ation-samples/
    You can start from there and use it as a base and then ask a more concrete question related to your use case.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •