Hi

Please take a look at this wiki page before asking for help
http://camel.apache.org/support.html

What is the first highlighted bullet in that list?

The timeout is apparently because the seda is request/reply and no
reply have been received within the 30 seconds.
See the timeout option
http://camel.apache.org/seda.html

Its a bit hard to help when you do not show sample code.

And frankly why do you want to proxy using seda? Shouldn't the proxied
client not wait for a reply? Hence direct should be used.



On Thu, Feb 11, 2010 at 3:42 AM, James Carr <[email protected]> wrote:
> Hi,
>
> Exploring camel proxies a bit, and a little confused. I have two beans
> defined in my spring context that I want to first make them work by
> using direct, then switch to use seda. In the first case I have this:
>
> <camel:camelContext id="context">
>                <camel:proxy id="warehouseProxy" serviceUrl="direct:warehouse"
>                        
> serviceInterface="org.jamescarr.example.domain.Warehouse" />
>                <camel:export id="warehouse"
> serviceInterface="org.jamescarr.example.domain.Warehouse"
>                        serviceRef="warehouseImpl" uri="direct:warehouse" />
>        </camel:camelContext>
>        <bean id="warehouseImpl"
> class="org.jamescarr.example.domain.SprocketWarehouse" />
>
>        <bean id="orderSite" class="org.jamescarr.example.domain.OrderSite">
>                <property name="warehouse" ref="warehouseProxy"></property>
>        </bean>
>
> I have a main class that simply gets orderSite and places five orders.
> Using direct it works, however when I switch to direct to seda it gets
> the first order then waits for awhile before throwing this exception:
> org.apache.camel.ExchangeTimedOutException: The OUT message was not
> received within: 30000 millis on the exchange: Exchange[Message:
> BeanInvocation public abstract void
> org.jamescarr.example.domain.Warehouse.shipProduct(org.jamescarr.example.domain.ShippingOrder)
> with [org.jamescarr.example.domain.shippingor...@67fe80]]]
>
> any idea what gives?
>
> Thanks,
> James
>



-- 
Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

Reply via email to