Quite sorry for the trouble.
It seems AggregatorStrategy might be the wrong EIP to use for my business
case. I ran your sample and I just edited it to adapt it, and I am still not
getting desired result.
Here is what I'd like to achieve:
Client Request -> remote WebService 1 -> remote webservi
On Sun, Jan 24, 2010 at 7:59 PM, lekkie wrote:
>
> I tried this but it did not work.
>
> Something strange however, happens. I noticed if I use the default
> aggregationStrategy, the log:Response1 will be logged (as null), however if
> I changed it to myAggregatorStrategy, it never prints the log
Hi
Can you create a JIRA and submit a small test case with it?
It will make us easier to dig your issue.
Willem
lekkie wrote:
Guys, can u help out?
lekkie wrote:
I tried this but it did not work.
Something strange however, happens. I noticed if I use the default
aggregationStrategy, the lo
Guys, can u help out?
lekkie wrote:
>
> I tried this but it did not work.
>
> Something strange however, happens. I noticed if I use the default
> aggregationStrategy, the log:Response1 will be logged (as null), however
> if I changed it to myAggregatorStrategy, it never prints the log (let
>
I tried this but it did not work.
Something strange however, happens. I noticed if I use the default
aggregationStrategy, the log:Response1 will be logged (as null), however if
I changed it to myAggregatorStrategy, it never prints the log (let alone
log:Response3), instead it prints log:Response2
I tried this but it did not work.
Something strange however, happens. I noticed if I use the default
aggregationStrategy, the log:Response1 will be logged (as null), however if
I changed it to myAggregatorStrategy, it never prints the log (let alone
log:Response3), instead it prints log:Response2
Hi
I have created an unit test which does what you want
http://svn.apache.org/viewvc?rev=902559&view=rev
You should use batchSize = 2 and not OUIT batch size. OUT batch size
is when you have multiple correlation groups.
Which yo do not have since you use true as the correlation id.
Also note tha
Instead of outBatchSize=2 did you try batchSize=2 maybe? Also does it
perhaps work properly without that wiretap?
On Fri, Jan 22, 2010 at 10:41 AM, lekkie wrote:
>
> This is what comes form my log:
>
> 11:38:31,370 | INFO | 0: Batch Sender | MyAggregationStrategy |
> rg.tempuri.MyAg
This is what comes form my log:
11:38:31,370 | INFO | 0: Batch Sender | MyAggregationStrategy|
rg.tempuri.MyAggregationStrategy 23 | new: Exchange[Message:
StringSource[http://schemas.xmlsoap.org/soap/envelope/";><_ns_:RequestResponse
xmlns:_ns_="http://services.locator/";>http://
Hmmm, I tested your aggregator code as-is on 2.2-SNAPSHOT here and it
works fine:
2010-01-22 09:41:18,444 [0: Batch Sender] INFO
JoinStringAggregatorTest - New: Exchange[Message: one]
2010-01-22 09:41:18,444 [0: Batch Sender] INFO
JoinStringAggregatorTest - old: Exchange[Message: one]
See code below:
package org.tempuri;
import org.apache.camel.Exchange;
import org.apache.camel.Header;
import org.apache.camel.Message;
import org.apache.camel.processor.aggregate.AggregationStrategy;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
public cl
Can you post what you're doing in your aggregation strategy?
On Fri, Jan 22, 2010 at 4:05 AM, lekkie wrote:
>
> Hi,
>
> I want to combine messages from 2 different exchanges into a single
> exchange, from the EIP patterns aggregation strategy seems to be right
> pattern to use.
>
> However, after
Hi,
I want to combine messages from 2 different exchanges into a single
exchange, from the EIP patterns aggregation strategy seems to be right
pattern to use.
However, after reading the doc (http://camel.apache.org/aggregator.html), I
followed the instructns but my aggregation strategy only retu
13 matches
Mail list logo