如何在weblogic.xml中创建自定义ManagedScheduledExecutorService并在java代码中使用它?
如何查找我在应用程序的weblogic.xml中定义的自定义ManagedScheduledExecutorService 我已尝试使用InitialContext.lookup,但它不起作用。 它抛出NamingException 我的weblogic.xml看起来像这样如何在weblogic.xml中创建自定义ManagedScheduledExecutorService并在java代码中使用它?,java,concurrency,weblogic,jndi,scheduledexecutorservice,Java,Concurrency,Weblogic,Jndi,Scheduledexecutorservice,如何查找我在应用程序的weblogic.xml中定义的自定义ManagedScheduledExecutorService 我已尝试使用InitialContext.lookup,但它不起作用。 它抛出NamingException 我的weblogic.xml看起来像这样 <wl-dispatch-policy>CustomWorkManager</wl-dispatch-policy> <work-manager> <
<wl-dispatch-policy>CustomWorkManager</wl-dispatch-policy>
<work-manager>
<name>CustomWorkManager</name>
<min-threads-constraint>
<name>CustomWorkManager-MinThreads</name>
<count>1</count>
</min-threads-constraint>
<max-threads-constraint>
<name>CustomWorkManager-MaxThreads</name>
<count>20</count>
</max-threads-constraint>
</work-manager>
<managed-scheduled-executor-service>
<name>CustomMSES</name>
<dispatch-policy>CustomWorkManager</dispatch-policy>
</managed-scheduled-executor-service>
我错过什么了吗
我不熟悉JNDI查找概念,所以我可能做错了什么。
我确实在博客中看到,他们在名称前添加了类似“java:comp/env”的内容。
但我找不到这种命名的逻辑
我确信,如果JNDI查找字符串得到纠正,我应该能够正确运行代码
是否有人可以帮助建议可能缺少的内容?将我的查找值从
"CustomMSES"
到
看来是你干的
"CustomMSES"
"java:comp/env/concurrent/CustomMSES"