什么是覆盖事务超时的注释? [英] What is annotation to override transaction timeout?
问题描述
EE新手 - 尝试重新配置Weblogic的默认超时30秒,而无需编写weblogic-ejb-jar.xml文件。我现在只使用了注释,但我在这里看到的唯一的东西是DD:
New to EE - trying to reconfigure Weblogic's default timeout of 30 seconds without having to write up a weblogic-ejb-jar.xml file. I've used only annotations now but the only thing that I have seen is in the DD here:
< transaction-descriptor>
< trans-timeout-seconds> 1200< / trans-timeout-seconds>
< / transaction-descriptor>
无论如何要避免为此设置描述符文件?
Anyway to avoid have a descriptor file just for this?
推荐答案
我觉得很奇怪回答我自己的问题,但有人在工作时发现了这个注释。
I feel weird answering my own question but someone at work found this annotation.
@ weblogic.javaee.TransactionTimeoutSeconds(1200)
这是特定于Weblogic的,但在我的情况下,它会做。对于其他需要它的人,请点击以下链接: http:// docs。 oracle.com/cd/E24329_01/web.1211/e24972/annotations.htm#i1438354
It is Weblogic specific but in my case, it will do. For anyone else who needs it, here is the link: http://docs.oracle.com/cd/E24329_01/web.1211/e24972/annotations.htm#i1438354
这篇关于什么是覆盖事务超时的注释?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!