【文件属性】:
文件名称:Apache-Camel-For-Order:使用Apache Camel重建订单中心
文件大小:72KB
文件格式:ZIP
更新时间:2021-04-18 23:53:41
Java
rebuild order-center using apache camel
public void configure() throws Exception {
/**聚合下单入参,目前该流程未开启事务,如需开启,需spring配置事务管理器*/
from("direct:aggregationInputOrderParam")
// .transacted()
.choice()
.when(bodyAs(PreCartOrder.class))
.when(bodyAs(SubmitCartOrder.class))
.bean(orderInputParamConvertComponent, "generateSubmitCartItemInfo")