2017-10-05 111 views
0

如果可能,我找不到信息,如果有,那麼如何將配置的執行程序公開爲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-tpjava:comp/threads/spring-async-tp訪問但沒有被發現。所以如果可能的話,我怎樣才能通過JNDI找到它?

回答

0

threads子系統已棄用,並且已在JBoss EAP 7.0中刪除。也沒有辦法通過JNDI公開工廠。這個子系統的目的是作爲其他子系統的參考點來指向一個線程工廠。這些工廠從未用於部署。