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

Reply via email to