Package org.apache.camel.spi

Examples of org.apache.camel.spi.UnitOfWork.start()


            exchange.setFromRouteId(route.getId());
        }

        UnitOfWork uow = endpoint.getCamelContext().getUnitOfWorkFactory().createUnitOfWork(exchange);
        exchange.setUnitOfWork(uow);
        uow.start();
        return uow;
    }

    /**
     * If the consumer needs to defer done the {@link org.apache.camel.spi.UnitOfWork} on
View Full Code Here


            exchange.setFromRouteId(route.getId());
        }

        UnitOfWork uow = UnitOfWorkHelper.createUoW(exchange);
        exchange.setUnitOfWork(uow);
        uow.start();
        return uow;
    }

    /**
     * If the consumer needs to defer done the {@link org.apache.camel.spi.UnitOfWork} on
View Full Code Here

            if (exchange.getUnitOfWork() == null) {
                // If there is no existing UoW, then we should start one and
                // terminate it once processing is completed for the exchange.
                UnitOfWork uow = createUnitOfWork(exchange);
                exchange.setUnitOfWork(uow);
                uow.start();
                return uow;
            }

            return null;
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.