You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Jonathan Anstey (JIRA)" <ji...@apache.org> on 2008/10/31 14:59:05 UTC

[jira] Created: (CAMEL-1038) custom aggregation collection

custom aggregation collection
-----------------------------

                 Key: CAMEL-1038
                 URL: https://issues.apache.org/activemq/browse/CAMEL-1038
             Project: Apache Camel
          Issue Type: Sub-task
    Affects Versions: 1.4.0, 1.5.0
            Reporter: Jonathan Anstey
            Assignee: Jonathan Anstey
             Fix For: 2.0.0




-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Re: [jira] Updated: (CAMEL-1038) custom aggregation collection

Posted by Jonathan Anstey <ja...@gmail.com>.
Spot on Claus! Should be fixed now.

Claus Ibsen wrote:
> Hi Jon
>
> The wiki page has a few flaws. A code examples isn't shown, and I think one of the samples might be inserted the wrong place. Do you mind look at it. 
>
> MyReverseAggregationCollection might be added a bit too soon, as the first sample should find the highest bids.
>
>
>
> Med venlig hilsen
>  
> Claus Ibsen
> ......................................
> Silverbullet
> Skovsgårdsvænget 21
> 8362 Hørning
> Tlf. +45 2962 7576
> Web: www.silverbullet.dk
>
> -----Original Message-----
> From: Jonathan Anstey (JIRA) [mailto:jira@apache.org] 
> Sent: 5. november 2008 20:09
> To: camel-dev@activemq.apache.org
> Subject: [jira] Updated: (CAMEL-1038) custom aggregation collection
>
>
>      [ https://issues.apache.org/activemq/browse/CAMEL-1038?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
>
> Jonathan Anstey updated CAMEL-1038:
> -----------------------------------
>
>     Fix Version/s: 1.5.1
>
>   
>> custom aggregation collection
>> -----------------------------
>>
>>                 Key: CAMEL-1038
>>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1038
>>             Project: Apache Camel
>>          Issue Type: Sub-task
>>    Affects Versions: 1.4.0, 1.5.0
>>            Reporter: Jonathan Anstey
>>            Assignee: Jonathan Anstey
>>             Fix For: 1.5.1, 2.0.0
>>
>>
>>     
>
>
>   


RE: [jira] Updated: (CAMEL-1038) custom aggregation collection

Posted by Claus Ibsen <ci...@silverbullet.dk>.
Hi Jon

The wiki page has a few flaws. A code examples isn't shown, and I think one of the samples might be inserted the wrong place. Do you mind look at it. 

MyReverseAggregationCollection might be added a bit too soon, as the first sample should find the highest bids.



Med venlig hilsen
 
Claus Ibsen
......................................
Silverbullet
Skovsgårdsvænget 21
8362 Hørning
Tlf. +45 2962 7576
Web: www.silverbullet.dk

-----Original Message-----
From: Jonathan Anstey (JIRA) [mailto:jira@apache.org] 
Sent: 5. november 2008 20:09
To: camel-dev@activemq.apache.org
Subject: [jira] Updated: (CAMEL-1038) custom aggregation collection


     [ https://issues.apache.org/activemq/browse/CAMEL-1038?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jonathan Anstey updated CAMEL-1038:
-----------------------------------

    Fix Version/s: 1.5.1

> custom aggregation collection
> -----------------------------
>
>                 Key: CAMEL-1038
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1038
>             Project: Apache Camel
>          Issue Type: Sub-task
>    Affects Versions: 1.4.0, 1.5.0
>            Reporter: Jonathan Anstey
>            Assignee: Jonathan Anstey
>             Fix For: 1.5.1, 2.0.0
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CAMEL-1038) custom aggregation collection

Posted by "Jonathan Anstey (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-1038?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jonathan Anstey updated CAMEL-1038:
-----------------------------------

    Fix Version/s: 1.5.1

> custom aggregation collection
> -----------------------------
>
>                 Key: CAMEL-1038
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1038
>             Project: Apache Camel
>          Issue Type: Sub-task
>    Affects Versions: 1.4.0, 1.5.0
>            Reporter: Jonathan Anstey
>            Assignee: Jonathan Anstey
>             Fix For: 1.5.1, 2.0.0
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-1038) custom aggregation collection

Posted by "Jonathan Anstey (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-1038?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=47178#action_47178 ] 

Jonathan Anstey commented on CAMEL-1038:
----------------------------------------

Wiki has been updated.

> custom aggregation collection
> -----------------------------
>
>                 Key: CAMEL-1038
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1038
>             Project: Apache Camel
>          Issue Type: Sub-task
>    Affects Versions: 1.4.0, 1.5.0
>            Reporter: Jonathan Anstey
>            Assignee: Jonathan Anstey
>             Fix For: 1.5.1, 2.0.0
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-1038) custom aggregation collection

Posted by "Jonathan Anstey (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-1038?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=47089#action_47089 ] 

Jonathan Anstey commented on CAMEL-1038:
----------------------------------------

Merged a fix for this in revision 711655.

Still to update docs at http://activemq.apache.org/camel/aggregator.html. I also noticed that you can't specify an empty expression section (which is valid in the Java DSL). You need to specify the ugly <expression/> element. Going to see if I can make this neater. 

> custom aggregation collection
> -----------------------------
>
>                 Key: CAMEL-1038
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1038
>             Project: Apache Camel
>          Issue Type: Sub-task
>    Affects Versions: 1.4.0, 1.5.0
>            Reporter: Jonathan Anstey
>            Assignee: Jonathan Anstey
>             Fix For: 2.0.0
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-1038) custom aggregation collection

Posted by "Jonathan Anstey (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-1038?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=47177#action_47177 ] 

Jonathan Anstey commented on CAMEL-1038:
----------------------------------------

Just committed the fix to remove the ugly <expression/> bit. I didn't merge it to 1.x because it changes the Spring DSL for aggregator. So, when specifying a aggregation collection in 2.0, do this:

{code}
      <aggregator batchTimeout="500" collectionRef="aggregatorCollection">
        <to uri="mock:result"/>
      </aggregator>
{code}

in 1.x

{code}
      <aggregator batchTimeout="500" collectionRef="aggregatorCollection">
        <expression/>
        <to uri="mock:result"/>
      </aggregator>
{code}

In order to do this I had to change the regular aggregator syntax in 2.0 as well:

{code}
      <aggregator>
        <correlationExpression>
          <simple>header.cheese</simple>
        </correlationExpression>
        <to uri="mock:result"/>
      </aggregator>
{code}

Will be updating the wiki shortly to reflect this.

> custom aggregation collection
> -----------------------------
>
>                 Key: CAMEL-1038
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1038
>             Project: Apache Camel
>          Issue Type: Sub-task
>    Affects Versions: 1.4.0, 1.5.0
>            Reporter: Jonathan Anstey
>            Assignee: Jonathan Anstey
>             Fix For: 1.5.1, 2.0.0
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (CAMEL-1038) custom aggregation collection

Posted by "Jonathan Anstey (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-1038?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jonathan Anstey resolved CAMEL-1038.
------------------------------------

    Resolution: Fixed

> custom aggregation collection
> -----------------------------
>
>                 Key: CAMEL-1038
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1038
>             Project: Apache Camel
>          Issue Type: Sub-task
>    Affects Versions: 1.4.0, 1.5.0
>            Reporter: Jonathan Anstey
>            Assignee: Jonathan Anstey
>             Fix For: 1.5.1, 2.0.0
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-1038) custom aggregation collection

Posted by "Jonathan Anstey (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-1038?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=46940#action_46940 ] 

Jonathan Anstey commented on CAMEL-1038:
----------------------------------------

See http://www.nabble.com/How-to-set-custom-aggregation-collection-in-Spring-XML-td20261318s22882.html

> custom aggregation collection
> -----------------------------
>
>                 Key: CAMEL-1038
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1038
>             Project: Apache Camel
>          Issue Type: Sub-task
>    Affects Versions: 1.4.0, 1.5.0
>            Reporter: Jonathan Anstey
>            Assignee: Jonathan Anstey
>             Fix For: 2.0.0
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CAMEL-1038) custom aggregation collection

Posted by "Jonathan Anstey (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-1038?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jonathan Anstey updated CAMEL-1038:
-----------------------------------

        Fix Version/s: 2.0.0
    Affects Version/s: 1.4.0
                       1.5.0

> custom aggregation collection
> -----------------------------
>
>                 Key: CAMEL-1038
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1038
>             Project: Apache Camel
>          Issue Type: Sub-task
>    Affects Versions: 1.4.0, 1.5.0
>            Reporter: Jonathan Anstey
>            Assignee: Jonathan Anstey
>             Fix For: 2.0.0
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.