在WebLogic中获取JTA事务超时值

发布于 2024-08-04 06:08:50 字数 92 浏览 3 评论 0原文

有没有办法获取JTA事务超时值? UserTransaction接口只有setTransactionTimeout方法。在WebLogic中是否有特定的方法来获取它的值?

Is there a way to get JTA transaction timeout value? UserTransaction interface has only setTransactionTimeout method. Is there a specific way of getting its value in WebLogic?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

温柔少女心 2024-08-11 06:08:50

如果您只需要默认值,可以使用 weblogic。 management.configuration.JTAMBean

If you just want the default, you can use weblogic.management.configuration.JTAMBean.

扎心 2024-08-11 06:08:50

在 WLS 10.2 中,您可以使用 WLS 自定义扩展 weblogic.transaction.Transaction,然后调用 getTimeToLiveMillis()

In WLS 10.2, you can use the WLS custom extension weblogic.transaction.Transaction and then call getTimeToLiveMillis().

土豪 2024-08-11 06:08:50

没有实际的解决方案可以通过简单的 API 调用来确定当前事务超时值。

作为解决方案,我使用了上面韦恩的建议来获取默认值。此外,由于我根据配置文件自行设置所有非默认值,因此当需要获取当前事务超时值时,我会再次读取/缓存它。

There is no actual solution to determine current transaction timeout value with simple API call.

As a solution I've used the advice from Wayne above to get the default value. Also as all non-default values I set myself based on configuration file, I read/cache it again when there is a need to get the value for current transaction timeout.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文