I have figured it out.  My <configuration-name> reference needed to be included WITHIN 
the <session> tag, not immediately following it.  Once I made this change, all worked 
as documented.

Thanks for all you assistance.

Todd

------------------------------

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.StatefulSessionInstanceInterceptor</interceptor>    
            
tac>         <!-- BMT -->
tac>         <interceptor transaction = 
"Bean">org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor</interceptor>    
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.CachedConnectionInterceptor</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.StatefulSessionFilePersistenceManager</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

Reply via email to