Thanks Claus,

I've changed my route

<camel:route>
          <camel:from uri="activemq:topic:output"/>
          <camel:aggregate batchSize="5" groupExchanges="true">
                <camel:correlationExpression>
                        <camel:constant/>
                </camel:correlationExpression>
        <camel:to uri="bean:testBean?method=test"/>
      </camel:aggregate>
</camel:route>

Outside camel context I've defined bean 

<bean id="testBean" class="pl.com.agora.uom.services.aliases.MyBean"/>

whitch contains only one method: 

public void test(Object o) {
                
                System.out.println("Call test method");
                System.out.println("Argument: "+o);
}

Now method "test" print:

Argument: null
Argument: null
...

What I'm doing wrong?

Cheers,
Marcin
-- 
View this message in context: 
http://old.nabble.com/camel-aggregator-tp28697161p28704372.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to