javax.resource.ResourceException: Transaction is not active

批量導入數據的時候報javax.resource.ResourceException: Transaction is not active異常

網上查了下是事物超時

 

解決辦法:

在server|default|conf|jboss-service.xml中将

<mbean code="org.jboss.tm.TransactionManagerService"
name="jboss:service=TransactionManager"
xmbean-dd="resource:xmdesc/TransactionManagerService-xmbean.xml">
<attribute name="TransactionTimeout">300</attribute>

将此处的300秒改成900秒或者更多

 

http://haijie1984.itpub.net/post/36681/478924

你可能感兴趣的:(xml,.net,jboss)