0 Replies Latest reply on Feb 14, 2003 12:44 PM by Bob Wieler

    How do you specify a specifc DLQ for a MDB?

    Bob Wieler Newbie

      I am trying to specify a different DLQ than the default one for a MDB I am trying to deploy. In my jbossmq-destinations-service.xml file I have defined the following queue:

      <depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager

      In my jboss.xml for my MDB I have defined the following MDBConfig:


      The problem that I am having is that when the MDB is deployed, it is not able to find my DLQ. When the server is starting the logs include:

      2003-02-14 12:38:44,377 INFO [org.jboss.mq.server.jmx.Queue.BOB_DLQ] Bound to JNDI name: queue/BOB_DLQ

      However when the MDB is being deployed I receive the message (I changed DLQHandler.java to include what it was looking up before actually performing the JNDI lookup):

      2003-02-14 12:42:15,452 DEBUG [org.jboss.mq.GenericConnectionFactory] Handing out ClientIL: org.jboss.mq.il.jvm.JVMClientILService
      2003-02-14 12:42:15,452 DEBUG [org.jboss.ejb.plugins.jms.DLQHandler] Created connection: org.jboss.mq.SpyConnection@735a55
      2003-02-14 12:42:15,452 DEBUG [org.jboss.ejb.plugins.jms.DLQHandler] Looking up destination JNDI name: queue/BOB_DLQ
      2003-02-14 12:42:15,461 ERROR [org.jboss.ejb.plugins.jms.DLQHandler] Initialization failed
      javax.naming.NameNotFoundException: BOB_DLQ not bound

      One log message states that it has bound the queue to queue/BOB_DLQ while the other states that it is not able to find the queue at queue/BOB_DLQ.

      Am I missing something???