Search in sources :

Example 1 with Waiter

use of org.apache.camel.example.cafe.stuff.Waiter in project camel by apache.

the class CafeRouteBuilder method createRegistry.

protected JndiRegistry createRegistry() throws Exception {
    JndiRegistry jndi = new JndiRegistry();
    jndi.bind("drinkRouter", new DrinkRouter());
    jndi.bind("orderSplitter", new OrderSplitter());
    jndi.bind("barista", new Barista());
    jndi.bind("waiter", new Waiter());
    jndi.bind("aggregatorStrategy", new CafeAggregationStrategy());
    return jndi;
}
Also used : JndiRegistry(org.apache.camel.impl.JndiRegistry) DrinkRouter(org.apache.camel.example.cafe.stuff.DrinkRouter) Barista(org.apache.camel.example.cafe.stuff.Barista) CafeAggregationStrategy(org.apache.camel.example.cafe.stuff.CafeAggregationStrategy) Waiter(org.apache.camel.example.cafe.stuff.Waiter) OrderSplitter(org.apache.camel.example.cafe.stuff.OrderSplitter)

Aggregations

Barista (org.apache.camel.example.cafe.stuff.Barista)1 CafeAggregationStrategy (org.apache.camel.example.cafe.stuff.CafeAggregationStrategy)1 DrinkRouter (org.apache.camel.example.cafe.stuff.DrinkRouter)1 OrderSplitter (org.apache.camel.example.cafe.stuff.OrderSplitter)1 Waiter (org.apache.camel.example.cafe.stuff.Waiter)1 JndiRegistry (org.apache.camel.impl.JndiRegistry)1