1 Reply Latest reply on Oct 26, 2003 8:16 AM by adrian.brock

    Controlling the number of MDB receiving messages

    crosscourt

      I tried setting maximumsize to 1 as follows but when i tried calling my app with 2 clients at the same time. 2 MDBs get created to process each message?

      <container-configurations>
      <container-configuration>
      <container-name>QueryProcessor MDB</container-name>

      <invoker-proxy-binding-name>message-driven-bean</invoker-proxy-binding-name>
      <container-interceptors>
      org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor
      org.jboss.ejb.plugins.LogInterceptor
      org.jboss.ejb.plugins.RunAsSecurityInterceptor
      <!-- CMT -->
      org.jboss.ejb.plugins.TxInterceptorCMT
      org.jboss.ejb.plugins.MetricsInterceptor
      org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor
      <!-- BMT -->
      org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor
      org.jboss.ejb.plugins.MessageDrivenTxInterceptorBMT
      org.jboss.ejb.plugins.MetricsInterceptor
      org.jboss.resource.connectionmanager.CachedConnectionInterceptor
      </container-interceptors>

      <container-invoker-conf>
      DefaultJMSProvider
      StdJMSPool
      1
      1
      True
      </container-invoker-conf>

      <instance-pool>org.jboss.ejb.plugins.MessageDrivenInstancePool</instance-pool>
      <container-pool-conf>
      100
      </container-pool-conf>
      </container-configuration>
      </container-configurations>