documentum方法超时如何执行?

发布于 2024-12-09 12:47:58 字数 533 浏览 3 评论 0原文

我有 documentum dm_method

create dm_method object
set object_name = 'xxxxxxxxxxx',
set method_verb = 'xxx.yyy.Foo',
set method_type = 'java',
set launch_async = false,
set use_method_server = true,
set run_as_server = true,
set timeout_min = 60,
set timeout_max = 600,
set timeout_default = 500

它通过 dm_job 调用,周期为 600 秒。 但是我的方法可以工作超过 600 秒(取决于用户生成的输入数据的大小)

当 java 中实现的 dm_method 超过 max_timeout 时会发生什么?

DFC 作业管理器发送 Thread.interrupt()? DFC 等待完成作业并仅记录警告? 我在Documentum文档中没有找到详细的描述。

I have documentum dm_method

create dm_method object
set object_name = 'xxxxxxxxxxx',
set method_verb = 'xxx.yyy.Foo',
set method_type = 'java',
set launch_async = false,
set use_method_server = true,
set run_as_server = true,
set timeout_min = 60,
set timeout_max = 600,
set timeout_default = 500

It invoked via dm_job with period 600 second.
But my method can work more than 600 second (depend on size of input data, produced by users)

Whats happens whan max_timeout exceeded on dm_method implemented in java?

DFC job manager send Thread.interrupt()?
DFC waits for finishing job and only log warning?
I didn't find detailed description in Documentum documentation.

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

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

发布评论

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

评论(1

记忆消瘦 2024-12-16 12:47:58

请参阅 https://forums.opentext.com 上的讨论/forums/discussion/153860/how-documentum-method-timeout-performed

实际上,Java方法有可能会继续运行在
超时后的 JMS。然而,内容服务器已经有
关闭该方法可以写入响应的 OutputStream。所以
您很可能会在日志以及作业对象中看到错误
如果该方法被作业调用。取决于该方法的作用,
它实际上可能能够完成它需要做的任何事情。

但是,您应该尝试将默认超时设置为以下值:
会给你的工作足够的时间来干净地完成。

See Discussion on https://forums.opentext.com/forums/discussion/153860/how-documentum-method-timeout-performed

Actually, it's possible that the Java method will continue running in
the JMS after timeout. However, the Content Server will already have
closed the OutputStream where the method can write the response. So
you will most likely see errors in the log, and also in the job object
if the method was called by a job. Depending on what the method does,
it might actually be able to complete whatever it needs to do.

However, you should try to set the default timeout to a value that
will give your job enough time to complete cleanly.

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