2 Replies Latest reply on Mar 5, 2007 7:24 PM by Anshu Narang

    poolsize, createCount and removeCount of MDB remain 0

    Maarten Roosendaal Newbie

      Hi,

      I have an MDB which uses the Standard Message Driven Bean as the container with these settings:
      <instance-cache></instance-cache>
      <persistence-manager></persistence-manager>
      <container-pool-conf>
      15

      What i want is to have 10 MDB in the pool after starting up the server. That's what i expect when i look at the proxy-binding for an MDB:
      1
      15

      But when i start putting messages on the queue you can see the MDB getting the message. I also printed out a message in the ejbCreate() and you can see MDB being creaetd. The problem is that the JMX beans for my MDB and the JMX pool bean do not seem to update the statistics like CurrentSize (org.jboss.ejb.plugins.MessageDrivenInstancePool), CreateCount and RemoveCount(MessageDrivenContainer). However, i see the messageCount being updated.

      Is this a bug or am i missing some configuration. Here 's mu ejb-jar.xml
      <ejb-jar>
      <enterprise-beans>
      <message-driven>
      <ejb-name>XMDB</ejb-name>
      <ejb-class>nl.XMDB</ejb-class>
      <transaction-type>Bean</transaction-type>
      <acknowledge-mode>Auto-acknowledge</acknowledge-mode>
      <message-driven-destination>
      <destination-type>javax.jms.Queue</destination-type>
      <subscription-durability>NonDurable</subscription-durability>
      </message-driven-destination>
      </message-driven>
      </enterprise-beans>
      </ejb-jar>
      here's my jboss.xml

      <enterprise-beans>
      <message-driven>
      <ejb-name>XMDB</ejb-name>
      <configuration-name>Standard Message Driven Bean</configuration-name>
      <destination-jndi-name>queue/x_queue</destination-jndi-name>
      </message-driven>
      </enterprise-beans>


      My JBoss version is 4.0.2

      Thanks,
      Maarten