Weblogic:为servlet定义一个单独的线程池

时间:2022-01-19 00:52:33

I have a Weblogic 10.3 server and an ear application deployed on it.

我有一个Weblogic 10.3服务器和一个耳部应用程序。

I want that one of the servlets (that this application uses) always will have free threads to perform requests. Can I set for this servlet a separate thread pool? Or can you advise me something else?

我希望其中一个servlet(该应用程序使用)始终具有执行请求的空闲线程。我可以为这个servlet设置一个单独的线程池吗?或者你能告诉我别的什么吗?

Thank you, Alex

谢谢,Alex

1 个解决方案

#1


Figured it out by myself. I needed to define a workmanager in weblogic.xml of my application and in web.xml I needed to apply the new workmanager to my servlet.

自己弄清楚了。我需要在我的应用程序的weblogic.xml中定义一个workmanager,在web.xml中我需要将新的workmanager应用到我的servlet。

More about creating and using workmanagers in WebLogic: http://docs.oracle.com/cd/E23943_01/web.1111/e13701/self_tuned.htm#CNFGD117 http://www.itbuzzpress.com/weblogic-tutorials/weblogic-pools-configuration/using-workmanagers-in-your-applications.html

有关在WebLogic中创建和使用工作管理器的更多信息,请访问:http://docs.oracle.com/cd/E23943_01/web.1111/e13701/self_tuned.htm#CNFGD117 http://www.itbuzzpress.com/weblogic-tutorials/weblogic-池配置/使用-workmanagers - 在你的applications.html

#1


Figured it out by myself. I needed to define a workmanager in weblogic.xml of my application and in web.xml I needed to apply the new workmanager to my servlet.

自己弄清楚了。我需要在我的应用程序的weblogic.xml中定义一个workmanager,在web.xml中我需要将新的workmanager应用到我的servlet。

More about creating and using workmanagers in WebLogic: http://docs.oracle.com/cd/E23943_01/web.1111/e13701/self_tuned.htm#CNFGD117 http://www.itbuzzpress.com/weblogic-tutorials/weblogic-pools-configuration/using-workmanagers-in-your-applications.html

有关在WebLogic中创建和使用工作管理器的更多信息,请访问:http://docs.oracle.com/cd/E23943_01/web.1111/e13701/self_tuned.htm#CNFGD117 http://www.itbuzzpress.com/weblogic-tutorials/weblogic-池配置/使用-workmanagers - 在你的applications.html