Hi,

I have written a MDB that consume messages from a queue. Messages are sent to the queue from a bunch of Stateless session beans. The messages are sent properly and gets stored in the queue. I have 10 MDBs setup to consume messages from the queue. In the Weblogic6.1 console, I can see 10 consumers for that queue, but nobody is consuming any messages from the queue. The constructor and ejbCreate methods of all the MDBs have been called, but onMessage method is NOT getting called. Could anybody please tell me what's wrong with this from the behaviour ? The ejb-jar.xml and weblogic-ejb-jar.xml files are listed below. Any help on this will be greatly appreciated.

Thanks.

Bijan

ejb-jar.xml
--------------------------------------------
ejb-jar>
    <enterprise-beans>
      <message-driven>
<description>no description</description>
<display-name>MessageConsumer</display-name>
<ejb-name>MessageConsumerEJB</ejb-name>
<ejb-class>MessageConsumer.MessageConsumerEJB</ejb-class>
<transaction-type>Container</transaction-type>
<message-selector>MessageFormat='Version 3.4'</message-selector>
<acknowledge-mode>Auto-acknowledge</acknowledge-mode>
<message-driven-destination>
          <destination-type>javax.jms.Queue</destination-type>
        </message-driven-destination>
      </message-driven>
    </enterprise-beans>
    <assembly-descriptor></assembly-descriptor>
  </ejb-jar>
------------------------------------------------------

weblogic-ejb-jar.xml

<?xml version="1.0"?>

<!DOCTYPE weblogic-ejb-jar PUBLIC "-//BEA Systems, Inc.//DTD WebLogic 6.0.0 EJB//EN"
"http://www.bea.com/servers/wls600/dtd/weblogic-ejb-jar.dtd">
<weblogic-ejb-jar>
    <weblogic-enterprise-bean>
      <ejb-name>MessageConsumerEJB</ejb-name>
      <message-driven-descriptor>
        <pool>
            <max-beans-in-free-pool>10</max-beans-in-free-pool>
            <initial-beans-in-free-pool>10</initial-beans-in-free-pool>
        </pool>
        <destination-jndi-name>OrderJMSQueue</destination-jndi-name>
      </message-driven-descriptor>
      <jndi-name>MessageConsumerEJB</jndi-name>
    </weblogic-enterprise-bean>
  </weblogic-ejb-jar>