1 Reply Latest reply on Mar 16, 2004 9:29 PM by Adrian Brock

    FAQ item how do I Configure XXX ForMessageDrivenBean

    ian Newbie

      Env: JBoss 3.2.1

      http://jboss.org/wiki/Wiki.jsp?page=ConfigureXXXForMessageDrivenBean

      I'd like to limit the size of the pool for my MDB to 8 instances.
      I followed instructions in the wiki page.

      So my questions are:

      1. Once deployed without any error, how do I verify via jmx-console that the pool is properly set ?
      2. What's the difference between the 2 MaximumSize element in <proxy-factory-config> and
      <container-pool-conf> ?

      When I click on the link

      jndiName=local/FTAMessageDrivenBean,plugin=pool,service=EJB under jboss.j2ee , i am still seeing that
      the MDB still has a MaxSize of 100


      snippets of XML
      ...

       <invoker-proxy-bindings>
       <invoker-proxy-binding>
       <name>MY-BINDING-NAME</name>
       <invoker-mbean>default</invoker-mbean>
       <proxy-factory>org.jboss.ejb.plugins.jms.JMSContainerInvoker</proxy-factory>
       <proxy-factory-config>
       <JMSProviderAdapterJNDI>DefaultJMSProvider</JMSProviderAdapterJNDI>
       <ServerSessionPoolFactoryJNDI>StdJMSPool</ServerSessionPoolFactoryJNDI>
       <MaximumSize>8</MaximumSize>
       <MaxMessages>1</MaxMessages>
       <MDBConfig>
       <ReconnectIntervalSec>10</ReconnectIntervalSec>
       <DLQConfig>
       <DestinationQueue>queue/DLQ</DestinationQueue>
       <MaxTimesRedelivered>10</MaxTimesRedelivered>
       <TimeToLive>0</TimeToLive>
       </DLQConfig>
       </MDBConfig>
       </proxy-factory-config>
       </invoker-proxy-binding>
       </invoker-proxy-bindings>
      



       <message-driven>
       <ejb-name>FTAMessageDrivenBean</ejb-name>
      
       <destination-jndi-name>queue/FTA_Queue</destination-jndi-name>
       <invoker-bindings>
       <invoker>
       <invoker-proxy-binding-name>MY-BINDING-NAME</invoker-proxy-binding-name>
       </invoker>
       </invoker-bindings>
      
       </message-driven>
      
      


       <container-configuration>
       <container-name>MY CUSTOM CONTAINER</container-name>
       <call-logging>false</call-logging>
       <invoker-proxy-binding-name>MY-BINDING-NAME</invoker-proxy-binding-name>
       <container-interceptors>
       <interceptor>org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor</interceptor>
       <interceptor>org.jboss.ejb.plugins.LogInterceptor</interceptor>
       <interceptor>org.jboss.ejb.plugins.RunAsSecurityInterceptor</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.MessageDrivenInstanceInterceptor</interceptor>
       <!-- BMT -->
       <interceptor transaction="Bean">org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor</interceptor>
       <interceptor transaction="Bean">org.jboss.ejb.plugins.MessageDrivenTxInterceptorBMT</interceptor>
       <interceptor transaction="Bean" metricsEnabled="true">org.jboss.ejb.plugins.MetricsInterceptor</interceptor>
       <interceptor>org.jboss.resource.connectionmanager.CachedConnectionInterceptor</interceptor>
       </container-interceptors>
       <instance-pool>org.jboss.ejb.plugins.MessageDrivenInstancePool</instance-pool>
       <instance-cache></instance-cache>
       <persistence-manager></persistence-manager>
       <container-pool-conf>
      
       <MaximumSize>8</MaximumSize>
       <strictMaximumSize>true</strictMaximumSize>
       </container-pool-conf>
       </container-configuration>