什么是覆盖事务超时的注释? [英] What is annotation to override transaction timeout?

查看:36
本文介绍了什么是覆盖事务超时的注释?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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:


1200

无论如何要避免为此使用描述符文件?

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆