什么是覆盖事务超时的注释?

ben*_*b b 3 annotations weblogic java-ee

EE新手 - 尝试重新配置Weblogic的默认超时30秒,而无需编写weblogic-ejb-jar.xml文件.我现在只使用了注释,但我在这里看到的唯一的东西是DD:

<transaction-descriptor>
<trans-timeout-seconds>1200</trans-timeout-seconds>
</transaction-descriptor>

无论如何要避免为此设置描述符文件?

ben*_*b b 8

我觉得很奇怪回答我自己的问题,但有人在工作时发现了这个注释.

@ weblogic.javaee.TransactionTimeoutSeconds(1200)

这是Weblogic特定的,但就我而言,它会做.对于其他需要它的人,请点击链接:http://docs.oracle.com/cd/E24329_01/web.1211/e24972/annotations.htm#i1438354