0

由于应用程序异常后未回滚的事务,我的团队遇到了问题。我创建了一个配置,以便所有属于 Exception 子类的异常都会生成回滚,但配置不起作用。有谁知道我做错了什么?我将休闲配置放在 WEB-INF 内的 ejb-jar 文件中

<assembly-descriptor>
        <application-exception>
            <exception-class>java.lang.Exception</exception-class>
            <rollback>true</rollback>
            <inherited>true</inherited>
        </application-exception>
    </assembly-descriptor>
4

1 回答 1

-1

The configuration you use must be included into META-INF/ejb-jar.xml, you can find and example here:

https://www.ibm.com/support/knowledgecenter/en/SSAW57_9.0.0/com.ibm.websphere.nd.multiplatform.doc/ae/cejb_app_exception.html

于 2018-07-11T12:21:52.680 回答