Wildfy添加ManagedExecutorService

时间:2017-03-31 22:56:11

标签: java jboss jndi

我想将新的ManagedExecutorService资源添加到 WildFly 10

我修改 standalone.xml ,并在<managed-executor-services>添加一行:

<managed-executor-service 
    name="test" 
    jndi-name="java:jboss/ee/concurrency/executor/test" 
    context-service="test" 
    long-running-tasks="true"
/>

重新启动 wildfy 后,我找不到 - java:jboss / ee / concurrency / executor / test - 在我的JNDI视图中,当然找不到此资源由InitialContext

组成

我做错了什么?感谢。

1 个答案:

答案 0 :(得分:0)

经过大量实验后,我删除了select * from DailyAffairTable where startTime between 1000000000000 and 15000000000000中的属性context-service,它确实有效!

之后我可以在JNDI视图中看到 java:jboss / ee / concurrency / executor / test

现在我的<managed-executor-service>看起来像那样:

<managed-executor-services>