Hello You have some mistakes in your jboss.xml file. You'll find the answer here http://www.jboss.org/online-manual/HTML/ch07s16.html.
alex > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of > [EMAIL PROTECTED] > Sent: Saturday, March 30, 2002 9:50 AM > To: [EMAIL PROTECTED] > Subject: [JBoss-user] Re: How to make Jboss make maximum 3 > instances of session bean ?? > > > 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.JRMPConta inerInvoker</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.StatefulSessionI nstanceInterceptor</interceptor> > <!-- BMT --> > <interceptor > transaction="Bean">org.jboss.ejb.plugins.StatefulSessionInstan ceInterceptor</interceptor> > <interceptor > transaction="Bean">org.jboss.ejb.plugins.TxInterceptorBMT</int erceptor> > <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.StatefulSessionInstanceC ache</instance-cache> > > <persistence-manager>org.jboss.ejb.plugins.StatefulSessionFile PersistenceManager</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.LRUStatefulContextCachePol icy</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> > ------------------------------------------ > > _______________________________________________ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user