2010-04-14 5 views
1

JBoss 4.2.0에서 EJB 인스턴스 (상태 비 저장)를 미리로드 할 수 있습니까? 이것에 대한 설정 옵션이 없다는 것을 알았지 만, 내 자신의 MBean이나이 일을 할 수 있을까요? 당신은 모두 컨테이너 confgiurations에 대한JBOss에 EJB 인스턴스를 미리로드하는 방법

<container-pool-conf> 
     <MaximumSize>100</MaximumSize> 
</container-pool-conf> 

을 찾을

-Dave

답변

0

그것은이 article

$JBOSS_HOME/server/default/conf/standardjboss.xml에 따라 아마이 켜지지 아니다 Clustered Stateless SessionBean

Standard Stateless SessionBean 

DTD에서 MinimumSize를 컨테이너 구성의 선택적 요소로 사용하여 MinimumSize를 설정하고 일부 서버 코드 자동차가 있는지 확인할 수 있습니다.

<!-- 
    The container-pool-conf element holds configuration data for the 
    instance pool. 
    jboss does not read directly the subtree for this element: instead, 
    it is passed to the instance pool instance (if it implements 
    org.jboss.metadata.XmlLoadable) for it to load its parameters. 

    The default instance pools, EntityInstancePool and 
    StatelessSessionInstancePool, both accept the following configuration. 

    Used in: container-configuration 
--> 
<!ELEMENT container-pool-conf ((MinimumSize?, MaximumSize?, 
    strictMaximumSize?, strictTimeout?) | Synchronized)> 
+1

작동하지 않는 것 같습니다. http://docs.jboss.org/jbossas/admindevel326/html/ch5.chapter.html "현재 모든 JBoss InstancePool 구현은 org.jboss.ejb.plugins.AbstractInstancePool 클래스에서 파생되며 MinimumSize, MaximumSize, strictMaximumSize 및 strictTimeout container-pool-conf 자식 요소 MinimumSize 요소는 JBoss가 현재 MinimumSize 값에 InstancePool을 시드하지는 않지만 풀에 유지할 최소 인스턴스 수를 제공합니다. " – Dave

관련 문제