camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: ExchangeTimedOutException when using vm/seda with multipleConsumers=true
Date Sat, 19 May 2012 09:06:00 GMT
Hi

Post the stacktrace, and what Camel version you are using.



On Wed, May 16, 2012 at 5:35 PM, Michael Süess
<michael.sueess@basis06.ch> wrote:
> I use vm (or seda) with ?multipleConsumers=true to implement a request-reply
> observer pattern:
>
>
> <?xml version="1.0" encoding="UTF-8"?>
> <beans xmlns="http://www.springframework.org/schema/beans"
>       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>       xmlns:camel="http://camel.apache.org/schema/spring"
>       xsi:schemaLocation="
>       http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans.xsd
>       http://camel.apache.org/schema/spring
> http://camel.apache.org/schema/spring/camel-spring.xsd">
>    <camelContext xmlns="http://camel.apache.org/schema/spring">
>        <route id="subject">
>            <from uri="file:data/spike/in?noop=true"/>
>            <log message="starting file '${header.CamelFileName}' ..."/>
>            <to uri="vm:subjectStarted" pattern="InOut"/>
>            <log message="file '${header.CamelFileName}' done"/>
>        </route>
>
>        <route id="subjectListener1">
>            <from uri="vm:subjectStarted?multipleConsumers=true"/>
>            <log message="   starting file '${header.CamelFileName}' ..."/>
>            <log message="   file '${header.CamelFileName}' done"/>
>        </route>
>
>        <route id="subjectListener2">
>            <from uri="vm:subjectStarted?multipleConsumers=true"/>
>            <log message="   starting file '${header.CamelFileName}' ..."/>
>            <log message="   file '${header.CamelFileName}' done"/>
>        </route>
>    </camelContext>
> </beans>
>
> when running this sample i always got an ExchangeTimedOutException although
> all listeners have finished before the timeout.
>
> Any ideas?



-- 
Claus Ibsen
-----------------
CamelOne 2012 Conference, May 15-16, 2012: http://camelone.com
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Mime
View raw message