AFAIK, strict pool size is not available in 3.x, it had not been ported. > -----Message d'origine----- > De : [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]De la part de > [EMAIL PROTECTED] > Envoye : vendredi, 9 aout 2002 17:48 > A : [EMAIL PROTECTED] > Objet : Re[2]: [JBoss-user] How to limit # of stateful session beans in > jboss.xml > > > Alex: > > The strictMaximumSize tag comes from a post I found on the JBoss > foums referencing a similar problem back in the 2.4 timeframe. I > have tried both with and without it and also with different > numbers for maximum to no avail. I'm running out of options to > try. Is this working for you with stateful beans in 3.0? > > BTW, the document you orignally forwarded me to referenced the > DTD as well. Try as I might, I cannot seem to locate a still > current URL to the jboss.xml or jboss-web.xml DTDs for 3.0. If > you have them, could you please send them to me. > > Thanks, > Todd > [EMAIL PROTECTED] > > ----------------------------------- > > Hello todd, > > no idea... I'd set it up the same way. > Some notes, though they scarcely have an impact. > - on-line docs say min-capacity can't be less then 2, though code > verifies it to be not less then zero; > - what is strictMaximumSize? i haven't found it neither in dtd nor > code. I looked at JBoss-3.0.1RC1 and 3.1.0alpha. > > alex > > Friday, August 09, 2002, 1:25:27 AM, you wrote: > > tac> Alex: > > tac> Thanks for the pointer to the documentation. It appears to > be what I'm looking for, but I'm still missing something. I have > a test client to a Stateful bean that is programmed to exceed the > tac> maximum number of Stateful instances I want to allow (2 in > my case for test purposes). I purposefully exceed this maximum > in the test client to verify that the container passiavtes the Statful > tac> beans as required and then successfully activates them on > successive calls. Unfortunately, I am seeing NO passivation and > am seeing each client above my maximum recieve a new instance despite > tac> the fact that it's the 3rd, 4th, 5th, etc... > > tac> Here is my jboss.xml file: > > tac> <?xml version="1.0" encoding="UTF-8"?> > tac> <jboss> > tac> <enterprise-beans> > tac> <session> > tac> <ejb-name>Count</ejb-name> > tac> <jndi-name>apps/AbilSoft/Count</jndi-name> > tac> <local-jndi-name>apps/AbilSoft/CountLocal</local-jndi-name> > tac> </session> > tac> <configuration-name>Limited Stateful > SessionBean</configuration-name> > tac> </enterprise-beans> > > tac> <!-- > tac> <container-invoker-conf> > tac> <MaximumSize>2</MaximumSize> > tac> <strictMaximumSize>true</strictMaximumSize> > tac> </container-invoker-conf> > tac> --> > > tac> <container-configurations> > tac> <container-configuration> > tac> <container-name>Limited Stateful SessionBean</container-name> > tac> <call-logging>false</call-logging> > tac> > <container-invoker>org.jboss.proxy.ejb.ProxyFactory</container-invoker> > tac> <container-interceptors> > tac> > <interceptor>org.jboss.ejb.plugins.LogInterceptor</interceptor> > > tac> <!-- CMT --> > tac> <interceptor transaction = > "Container">org.jboss.ejb.plugins.TxInterceptorCMT</interceptor> > tac> <interceptor transaction = "Container" > metricsEnabled = > "true">org.jboss.ejb.plugins.MetricsInterceptor</interceptor> > tac> <interceptor transaction = > "Container">org.jboss.ejb.plugins.StatefulSessionInstanceIntercept > or</interceptor> > > tac> <!-- BMT --> > tac> <interceptor transaction = > "Bean">org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor</i > nterceptor> > tac> <interceptor transaction = > "Bean">org.jboss.ejb.plugins.TxInterceptorBMT</interceptor> > tac> <interceptor transaction = "Bean" metricsEnabled = > "true">org.jboss.ejb.plugins.MetricsInterceptor</interceptor> > tac> > <interceptor>org.jboss.resource.connectionmanager.CachedConnection > Interceptor</interceptor> > tac> > <interceptor>org.jboss.ejb.plugins.SecurityInterceptor</interceptor> > tac> </container-interceptors> > tac> <client-interceptors> > tac> <home> > tac> > <interceptor>org.jboss.proxy.ejb.HomeInterceptor</interceptor> > tac> > <interceptor>org.jboss.proxy.SecurityInterceptor</interceptor> > tac> > <interceptor>org.jboss.proxy.TransactionInterceptor</interceptor> > tac> > <interceptor>org.jboss.invocation.InvokerInterceptor</interceptor> > tac> </home> > tac> <bean> > tac> > <interceptor>org.jboss.proxy.ejb.StatefulSessionInterceptor</interceptor> > tac> > <interceptor>org.jboss.proxy.SecurityInterceptor</interceptor> > tac> > <interceptor>org.jboss.proxy.TransactionInterceptor</interceptor> > tac> > <interceptor>org.jboss.invocation.InvokerInterceptor</interceptor> > tac> </bean> > tac> </client-interceptors> > tac> > <instance-cache>org.jboss.ejb.plugins.StatefulSessionInstanceCache > </instance-cache> > tac> > <persistence-manager>org.jboss.ejb.plugins.StatefulSessionFilePers > istenceManager</persistence-manager> > tac> > <transaction-manager>org.jboss.tm.TxManager</transaction-manager> > tac> <container-invoker-conf> > tac> <RMIObjectPort>4444</RMIObjectPort> > tac> <Optimized>True</Optimized> > tac> </container-invoker-conf> > tac> <container-cache-conf> > tac> > <cache-policy>org.jboss.ejb.plugins.LRUStatefulContextCachePolicy< > /cache-policy> > tac> <cache-policy-conf> > tac> <min-capacity>0</min-capacity> > tac> <max-capacity>2</max-capacity> > tac> <remover-period>1800</remover-period> > tac> <max-bean-life>1800</max-bean-life> > tac> <overager-period>300</overager-period> > tac> <max-bean-age>600</max-bean-age> > tac> <resizer-period>400</resizer-period> > tac> <max-cache-miss-period>60</max-cache-miss-period> > tac> <min-cache-miss-period>1</min-cache-miss-period> > tac> <cache-load-factor>0.75</cache-load-factor> > tac> </cache-policy-conf> > tac> </container-cache-conf> > tac> <container-pool-conf> > tac> <MaximumSize>2</MaximumSize> > tac> <strictMaximumSize>true</strictMaximumSize> > tac> </container-pool-conf> > tac> </container-configuration> > tac> </container-configurations> > tac> </jboss> > > tac> What am I missing or doing wrong? > > tac> Thanks again, > > tac> Todd > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user >
------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user