2 Replies Latest reply on Mar 2, 2004 6:44 PM by spob

    binding a queue and an MDB

    schwarcz

      Please excuse the newbie question, but I've defined a message queue and a message-driven bean (JBoss 3.0.4) / Windows XP. I consistently am unable to bind the MDB to my queue. JBoss instead creates a temporary quueue named after my MDB. I assumed I've failed to grasp something important about the deployment descriptors but have failed to find anything in the documentation. I know the queue I defined is there and working because I can send messages to it (via a servlet) and receive messages from it (via a stand-alone client.

      If you have any suggestions, please let me know.

      Here's the relvant segments of the ejb-jar.xml and jboss.xml

      <message-driven>
      <ejb-name>ChargeMDB</ejb-name>
      <ejb-class>carl.ejbLayer.ChargeBean</ejb-class>
      <transaction-type>Container</transaction-type>
      <acknowledge-mode>Auto-acknowledge</acknowledge-mode>
      <message-driven-destination>
      <destination-type>javax.jms.Queue</destination-type>
      </message-driven-destination>

      <resource-ref>
      <res-ref-name>jms/QCF</res-ref-name>
      <res-type>javax.jms.QueueConnectionFactory </res-type>
      <res-auth>Container</res-auth>
      </resource-ref>
      </message-driven>




      <message-driven>
      <ejb-name>ChargeMDB</ejb-name>
      <destination-jndi-name>queue/Grumpy</destination-jndi-name>

      </message-driven>