activiti里面的taskListenner 里面的代码,和外面的代码是2个事务,回滚的时候会报多个事务的
时间: 2015-11-23来源:开源中国
前景提要
HDC调试需求开发(15万预算),能者速来!>>>
activiti里面的taskListenner 里面的代码,和外面的代码是2个事务,回滚的时候会报多个事务的错误。
有人遇到过吗,怎么解决。
spring 配置文件:
<!-- Activiti begin -->
<bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration">
<property name="dataSource" ref="dataSource" />
<property name="transactionManager" ref="transactionManager" />
<property name="databaseSchemaUpdate" value="true" />
<property name="jobExecutorActivate" value="false" /> <!-- 开启定时任务 -->
<property name="history" value="full" />
<property name="processDefinitionCacheLimit" value="10" />
<!-- 生成流程图的字体 -->
<property name="activityFontName" value="${diagram.activityFontName}" />
<property name="labelFontName" value="${diagram.labelFontName}" />

</bean>

报错:
org.springframework.transaction.TransactionSystemException: Could not commit JPA transaction; nested exception is javax.persistence.RollbackException: Transaction marked as rollbackOnly

科技资讯:

科技学院:

科技百科:

科技书籍:

网站大全:

软件大全:

热门排行