0 Replies Latest reply on Sep 30, 2004 7:10 PM by Hussein Baghdadi

    Help me to run my first MDB in JBoss

    Hussein Baghdadi Novice

      Hi all.
      I developing my fist MDB in JBoss3.2.5
      I created this file (jbossmq-todd-service.xml) and drop it in deploy dir :

      <?xml version="1.0" encoding="UTF-8"?>
      <server>
       <mbean code="org.jboss.mq.server.jmx.Queue"
       name="jboss.mq.destination:service=Queue,name=ToddQueue">
       <depends optional-attribute-name="DestinationManager">
       jboss.mq:service=DestinationManager</depends>
       </mbean>
      </server>
      

      the following is jboss.xml
      <jboss>
       <enterprise-beans>
       <message-driven>
       <ejb-name>MessengerEJB</ejb-name>
       <destination-jndi-name>queue/ToddQueue</destination-jndi-name>
       </message-driven>
       <session>
       <ejb-name>ProducerEJB</ejb-name>
       <jndi-name>ProducerRemoteHome</jndi-name>
       <resource-ref>
       <res-ref-name>jms/QueueFactory</res-ref-name>
       <jndi-name>java:/JmsXA</jndi-name>
       </resource-ref>
       <resource-env-ref>
       <resource-env-ref-name>jms/JToddQueue</resource-env-ref-name>
       <jndi-name>queue/ToddQueue</jndi-name>
       </resource-env-ref>
       </session>
      
       </enterprise-beans>
      </jboss>
      

      as you noted, the session bean will send a message to queue that MDB is listening to.
      running JBoss I got :
      javax.jms.JMSException: Error creating the dlq connection: XAConnectionFactory not bound
      any ideas ??