2 Replies Latest reply on Dec 9, 2009 4:15 AM by Andy Taylor

    MDB in Jboss 4.3 not consuming messages

    Panduranga Manuru Newbie

      Here is my setup.
      Setup the JCA resoure adaptor for HornetQ in the same way as described here
      http://www.jboss.org/community/wiki/UsingHornetQwithJBoss4x

      Deployed a simple MDB with configuration as shown below (jboss.xml)

      <enterprise-beans>
      <message-driven>
      <ejb-name>TestMDB</ejb-name>
      <configuration-name>
      Standard Message Driven Bean
      </configuration-name>
      <invoker-bindings>

      <invoker-proxy-binding-name>message-driven-bean</invoker-proxy-binding-name>

      </invoker-bindings>
      <destination-jndi-name>
      /queue/testQueue
      </destination-jndi-name>
      <messaging-type>javax.jms.MessageListener</messaging-type>
      <transaction-type>Bean</transaction-type>
      <message-destination-type>
      javax.jms.Queue
      </message-destination-type>
      <activation-config>
      <activation-config-property>
      <activation-config-property-name>
      destinationType
      </activation-config-property-name>
      <activation-config-property-value>
      javax.jms.Queue
      </activation-config-property-value>
      </activation-config-property>
      <activation-config-property>
      <activation-config-property-name>
      acknowledgeMode
      </activation-config-property-name>
      <activation-config-property-value>
      AUTO_ACKNOWLEDGE
      </activation-config-property-value>
      </activation-config-property>
      <activation-config-property>
      <activation-config-property-name>
      subscriptionDurability
      </activation-config-property-name>
      <activation-config-property-value>
      NonDurable
      </activation-config-property-value>
      </activation-config-property>
      </activation-config>
      </message-driven>

      I have the /queue/testQueue in a non-clustered standalone HQ server.
      Jboss server starts up fine without any errors and I also see messages of the form

      2009-12-08 16:24:07,656 DEBUG [org.jboss.ejb.plugins.jms.JMSContainerInvoker] looking up session pool factory: java:/StdJMSPool
      2009-12-08 16:24:07,656 DEBUG [org.jboss.jms.asf.StdServerSessionPool] initializing with connection: org.hornetq.jms.client.HornetQConnection@ea58e3

      However I do not see MDB being setup as consumer on the queue at all (from JConsole on the HQ server) and it does not see any messages pumped to queue (sent from stand alone client and I see message count going up on the testQueue in JConsole)

      What am I doing wrong?

      Thanks