/** * Enable custom unit of work. UnitOfWorkFactory bean is automatically picked up by Camel context */ @Bean UnitOfWorkFactory customUnitOfWorkFactory() { return new UnitOfWorkFactory() { @Override public UnitOfWork createUnitOfWork(Exchange exchange) { return new CustomMDCBreadCrumbIdUnitOfWork(exchange); } }; }
public UnitOfWorkFactory getUnitOfWorkFactory() { return unitOfWorkFactory; }
public void setUnitOfWorkFactory(UnitOfWorkFactory unitOfWorkFactory) { this.unitOfWorkFactory = unitOfWorkFactory; }
@Override public UnitOfWorkFactory getUnitOfWorkFactory() { return context.getUnitOfWorkFactory(); }
@Override public void setUnitOfWorkFactory(UnitOfWorkFactory unitOfWorkFactory) { context.setUnitOfWorkFactory(unitOfWorkFactory); }
/** * Gets the {@link UnitOfWorkFactory} to use. */ UnitOfWorkFactory getUnitOfWorkFactory();
/** * Sets a custom {@link UnitOfWorkFactory} to use. */ void setUnitOfWorkFactory(UnitOfWorkFactory unitOfWorkFactory);