jboss 6.4 EAP线程池/执行程序JNDI查找
问题描述:
如果可能,我找不到信息,如果有,那么如何将配置的执行程序公开为JNDI资源。jboss 6.4 EAP线程池/执行程序JNDI查找
这是我的配置里面standalone.xml
<subsystem xmlns="urn:jboss:domain:threads:1.1">
<thread-factory name="spring-async-factory" group-name="spring-thread-pool" thread-name-pattern="spring-async-%t" priority="1"/>
<blocking-bounded-queue-thread-pool name="spring-async-tp">
<core-threads count="5"/>
<queue-length count="100"/>
<max-threads count="10"/>
<keepalive-time time="20" unit="seconds"/>
<thread-factory name="spring-async-factory"/>
</blocking-bounded-queue-thread-pool>
</subsystem>
我已经尝试过与java:global/threads/spring-async-tp
,java:comp/threads/spring-async-tp
访问但没有被发现。所以如果可能的话,我怎样才能通过JNDI找到它?
答
threads
子系统已弃用,并且已在JBoss EAP 7.0中删除。也没有办法通过JNDI公开工厂。这个子系统的目的是作为其他子系统的参考点来指向一个线程工厂。这些工厂从未用于部署。