我这里在biz层运行一个已有的action查询;因为运行次数会特别多,想用多线程分批并行查询;
ActionUtils.invokeAction在thread下会报:
Exception in thread "sendWeixnWaittingThread-1" com.justep.exception.BusinessException: 编码: JUSTEP150109; 提示: "RequestContext"不存在 at com.justep.exception.BusinessException.create(Unknown Source) at com.justep.util.Utils.checkNotExist(Unknown Source) at com.justep.model.ModelUtils.getRequestContext(Unknown Source) at com.justep.model.ModelUtils.getRootModel(Unknown Source) at com.justep.model.impl.ModelImpl.getModel(Unknown Source) at com.justep.model.impl.ModelImpl.getModel(Unknown Source) at com.justep.model.impl.UtilImplementInstance.getModel(Unknown Source) at com.justep.model.ModelUtils.getModel(Unknown Source) at com.justep.model.ModelUtils.getModelObjectByFullName(Unknown Source) at com.justep.system.action.Engine.invokeAction(Unknown Source) at com.justep.model.impl.UtilImplementInstance.invokeAction(Unknown Source) at com.justep.model.impl.UtilImplementInstance.invokeAction(Unknown Source) at com.justep.system.action.ActionUtils.invokeAction(Unknown Source) at WeixinNoticeWaitting.queryWaitMessageCount(WeixinNoticeWaitting.java:118) at WorkThread.run(WeixinNoticeWaitting.java:154) 除了用jdbc查询,有别的办法运行这个已有的action吗?
因为这个action条件总是在微调,想减少维护多个位置的代码。
|