java - 使用 WokManager 异步执行方法

标签 java weblogic

我的问题很简单,如何使用 Weblogic WorkManager 执行 java 中的方法? 我不想使用任何 Thread 实现方法。

示例:

public class CallerClass {

    public void callerMethod() {
        // Execution

        // Launch method in new thread
        obj.asyncMethod();

        // Continue before finishing ayncMethod
        return;
    }

    public void asyncMethod() {
        // Asynchronous method
    }
}

最佳答案

看看这是否有帮助,我发现它很有用。 using-the-weblogic-work-manager-to-delegate-long-running-tasks

关于java - 使用 WokManager 异步执行方法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46893378/

相关文章:

java - TestNG 组 : Can we include two group names and create one group to run tests?

java - 接口(interface)类调用未报告的异常

java.io.file 反斜杠保存在 weblogic 的根目录中

java - 不支持的协议(protocol) : t3 exception while trying to get number of threads in weblogic

java - 是否有来自现有 wsdl 文件的 Java/Android 中使用的数据类的类生成器?

java - 我如何在 Java 中转义 URL(文档不清楚)?

java - 错误::0 找不到引用的切入点

java - Weblogic EJB 调用在中等负载下开始失败并出现OptionalDataException

java - 如何从 WSDL 生成 EJB

java - 命令按钮在 JSP 文件中不可见