From: <wol...@ds...> - 2002-03-30 07:55:32
|
Thank you for replying... Although I put settings in jboss.xml, My Jboss still doesn't limit max bean instances... Here's the EJB(stateful session bean)'s ejb-jar.xml and jboss.xml [ejb-jar.xml]------------------------------------------------- <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd"> <ejb-jar> <enterprise-beans> <session> <display-name>Count EJB</display-name> <ejb-name>Count</ejb-name> <home>com.coolfumi.session.stateful.CountHome</home> <remote>com.coolfumi.session.stateful.Count</remote> <ejb-class>com.coolfumi.session.stateful.CountBean</ejb-class> <session-type>Stateful</session-type> <transaction-type>Container</transaction-type> </session> </enterprise-beans> </ejb-jar> ------------------------------------------------- In above, transaction-type should be Container ? or Bean ?? I'm not sure... [jboss.xml]-------------------------------------- <?xml version="1.0" encoding="UTF-8" ?> <jboss> <enterprise-beans> <session> <ejb-name>Count</ejb-name> <jndi-name>count/Count</jndi-name> </session> </enterprise-beans> <container-configuration> <container-name>Count</container-name> <call-logging>false</call-logging> <container-invoker>org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker</container-invoker> <container-interceptors> <interceptor>org.jboss.ejb.plugins.LogInterceptor</interceptor> <!-- CMT --> <interceptor transaction="Container">org.jboss.ejb.plugins.TxInterceptorCMT</interceptor> <interceptor transaction="Container" metricsEnabled="true">org.jboss.ejb.plugins.MetricsInterceptor</interceptor> <interceptor transaction="Container">org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor</interceptor> <!-- BMT --> <interceptor transaction="Bean">org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor</interceptor> <interceptor transaction="Bean">org.jboss.ejb.plugins.TxInterceptorBMT</interceptor> <interceptor transaction="Bean" metricsEnabled="true">org.jboss.ejb.plugins.MetricsInterceptor</interceptor> <interceptor>org.jboss.ejb.plugins.SecurityInterceptor</interceptor> </container-interceptors> <instance-cache>org.jboss.ejb.plugins.StatefulSessionInstanceCache</instance-cache> <persistence-manager>org.jboss.ejb.plugins.StatefulSessionFilePersistenceManager</persistence-manager> <transaction-manager>org.jboss.tm.TxManager</transaction-manager> <container-invoker-conf> <RMIObjectPort>4444</RMIObjectPort> <Optimized>True</Optimized> </container-invoker-conf> <container-cache-conf> <cache-policy>org.jboss.ejb.plugins.LRUStatefulContextCachePolicy</cache-policy> <cache-policy-conf> <min-capacity>1</min-capacity> <max-capacity>3</max-capacity> <remover-period>300</remover-period> <max-bean-life>600</max-bean-life> <overager-period>150</overager-period> <max-bean-age>300</max-bean-age> <resizer-period>400</resizer-period> <max-cache-miss-period>60</max-cache-miss-period> <min-cache-miss-period>1</min-cache-miss-period> <cache-load-factor>0.75</cache-load-factor> </cache-policy-conf> </container-cache-conf> </container-configuration> </jboss> ------------------------------------------ |