Hi,

I'm using recipientList and set the exchange pattern to InOnly. It looks
like this:

                        <setExchangePattern pattern="InOnly"/>
                        <recipientList parallelProcessing="true">
                                <method ref="recipientListByNameProcessor" />
                        </recipientList>

It failed because of the error:


org.apache.camel.ExchangeTimedOutException: The OUT message was not received
within: 20000 millis due reply message

>From the log, I found the ExchangePattern is still InOut (see below), that
probably causes the failure.

Message History
---------------------------------------------------------------------------------------------------------------------------------------
RouteId              ProcessorId          Processor                             
                                          
Elapsed (ms)
[route1            ] [route1            ]
[jms://foo.bar?exchangePattern=InOnly     ] [     20359]
[route1            ] [log1              ] [log                                  
                                        
] [         1]
[route1            ] [to5               ]
[log:foo.bar?multiline=true&level=trace&sh] [         1]
[route1            ] [recipientList1    ]
[recipientList[bean{recipientListByNameProcessor}]                            
] [     20357]

Exchange
---------------------------------------------------------------------------------------------------------------------------------------
Exchange[
        Id                  ID-***-51750-1400739837702-0-16
        ExchangePattern     InOut
        Headers             {...}
        BodyType            String
        Body                <?xml version="1.0" encoding="utf-8"?>
        ...

I don't know why the exchangePattern is not being overwritten? The camel
version is 1.12.1. But it works with version 1.8 before even without setting 
ExchangePattern.

Can you please help me to fix this problem?
Thanks
Damien




--
View this message in context: 
http://camel.465427.n5.nabble.com/recipientList-and-ExchangePattern-do-not-work-tp5751457.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to