0 Replies Latest reply on May 3, 2010 6:08 AM by Giovanni Ferrari

    Initial MDB pool size

    Giovanni Ferrari Newbie

      Hi,

      I'm am tying to deploy an MDB connecting to an external JMS Provider (FioranoMQ). The deploy is OK and the MDB correctly receives and processes messages. My problem is to control the initil size of the MDB pool, it seems that at startup no MDB is created unless a message is delivered to the queue. I need that at least one MDB is created at startup even if the quue is empty. How is it possible to specify an initial pool size ? In Weblogic descriptor it is possble to specify initial and maximum MDB pool size.

       

      Thank in advance

       

      Using jboss-5.1.0.GA.

       

      This is the jms ds descriptor:

       

      <?xml version="1.0" encoding="UTF-8"?>

       

      <connection-factories>

       

         <mbean code="org.jboss.jms.jndi.JMSProviderLoader"
                name="jboss.messaging:service=JMSProviderLoader,jndiName=FioranoJMSSMSCProvider">
            <attribute name="ProviderName">FioranoJMSSMSCProvider</attribute>
            <attribute name="ProviderAdapterClass">org.jboss.jms.jndi.JNDIProviderAdapter</attribute>
            <attribute name="QueueFactoryRef">primaryQCF</attribute>
            <attribute name="TopicFactoryRef">primaryTCF</attribute>
            <attribute name="Properties">
             java.naming.factory.initial=fiorano.jms.runtime.naming.FioranoInitialContextFactory
             java.naming.provider.url=http://192.168.144.17:1856
             </attribute>
         </mbean>

       

         <!-- JMS XA Resource adapter, use this to get transacted JMS in beans -->
         <tx-connection-factory>
            <jndi-name>FioranoJmsXA</jndi-name>
            <xa-transaction/>
            <rar-name>jms-ra.rar</rar-name>
            <connection-definition>org.jboss.resource.adapter.jms.JmsConnectionFactory</connection-definition>
            <config-property name="SessionDefaultType" type="java.lang.String">javax.jms.Queue</config-property>
            <config-property name="JmsProviderAdapterJNDI" type="java.lang.String">java:/FioranoJMSSMSCProvider</config-property>
            <min-pool-size>1</min-pool-size>
            <max-pool-size>20</max-pool-size>
            <security-domain-and-application>JmsXARealm</security-domain-and-application>
            <!--depends>jboss.messaging:service=ServerPeer</depends-->
         </tx-connection-factory>

       

      </connection-factories>