3 Replies Latest reply on Dec 22, 2004 9:41 PM by hubaghdadi

    Error creating the dlq connection, not my fault

    hubaghdadi

      Hi all.
      I'm facing a bang head situation and I need help.
      (I'm using JBoss 3.2.5)
      I have 2 beans:
      a stateless session bean that send a message to a queue.
      a MDB that listens to the previous queue and prints the message to the console.
      snipets from ejb-jar.xml

      <session>
       <resource-ref>
       <res-ref-name>jms/QueueFactory</res-ref-name>
       <res-type>javax.jms.QueueConnectionFactory</res-type>
       <res-auth>Container</res-auth>
       <res-sharing-scope>Shareable</res-sharing-scope>
       </resource-ref>
       <resource-env-ref>
       <resource-env-ref-name>jms/TicketQueue</resource-env-ref-name>
       <resource-env-ref-type>javax.jms.Queue</resource-env-ref-type>
       </resource-env-ref>
      </session>
      

      jboss.xml
      <jboss>
       <enterprise-beans>
       <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/TicketQueue</resource-env-ref-name>
       <jndi-name>queue/liga-TicketQueue</jndi-name>
       </resource-env-ref>
       </session>
       <message-driven>
       <ejb-name>MessengerEJB</ejb-name>
       <destination-jndi-name>queue/liga-TicketQueue</destination-jndi-name>
       </message-driven>
       </enterprise-beans>
      </jboss>
      

      before deploying the application, I created a file called jbossmq-liga-service.xml and dropped
      it in jms dir without any problem.
      <?xml version="1.0" encoding="UTF-8"?>
      <server>
       <mbean code="org.jboss.mq.server.jmx.Queue"
       name="jboss.mq.destination:service=Queue,name=liga-TicketQueue">
      <depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager</depends>
       </mbean>
      </server>
      

      when deploying the application, I got the exception :
      javax.jms.JMSException: Error creating the dlq connection: XAConnectionFactory not bound
      any help will be great...
      thanks.