7 Replies Latest reply on Sep 23, 2003 3:49 PM by jkuhn

    Error creating a Queue

    aswath_a

      Hi,
      I am new to JBoss. I am using JBoss 2.4.1. I am trying to port my MDB from Weblogic.
      I tried to add a new Queue in jboss.jcml like


      my jboss.xml has
      <message-driven>
      <ejb-name>NotificationMessageDriven</ejb-name>
      <configuration-name>Standard Message Driven Bean</configuration-name>
      <destination-jndi-name>queue/myEventQueue</destination-jndi-name>
      </message-driven>

      But when I start the server I get the following error:
      [JMSContainerInvoker] destination not found:queue/myEventQueue reason: javax.naming.NameNotFoundException: myEventQueue not bound
      [JMSContainerInvoker] creating a new temporary destination: queue/myEventQueue

      Am I missing any thing?I searched the documentation and forums. I couldn't get any further. Please someone help me. when I use 'testQueue' which comes with JBoss, it starts without any errors.

        • 1. Re: Error creating a Queue

          Where did you place your queue definition in jboss.jcml?

          At the end: don't do that, place it among the other queue definition.

          Already at correct place: I don't know.

          //Peter

          • 2. Re: Error creating a Queue
            aswath_a

            Hi,
            I defined my queue just below the testQueue definition.

            • 3. Re: Error creating a Queue

              Hi, could you look into your JNDI tree, by following the link to JNDI tree or something like that in the JMX management gui (8082) and do a list to see if your queue is registered in JNDI?

              //Peter

              • 4. Re: Error creating a Queue
                aswath_a

                I look under JBossMQ in the management console, i see the following
                serivce=Queue,name=myQueue
                It says it started. I commented the testQueue, A, B, ..
                But they still appear in the management consol like

                service=Queue,name=A
                service=Queue,name=B
                service=Queue,name=C
                service=Queue,name=D
                service=Queue,name=E
                service=Queue,name=F
                service=Queue,name=controlQueue
                service=Queue,name=ex
                service=Queue,name=testQueue

                I don't understand why. It seems like there is another place to configure the JMS destinations. I also tried with latest build 2.4.3. But, no use.

                • 5. Re: Error creating a Queue
                  aswath_a

                  Hi pra,
                  I found the problem. It's my bad. I am using JBoss with tomcat. And I was modifying jboss.jcml file under conf/default as per documentation. But I had to change it in conf/tomcat. Then it worked. I didn't event know there is jboss.jcml file under conf/tomcat until I did a search on JBoss directory. Thanks for your prompt replies.

                  • 6. Re: Error creating a Queue
                    jkuhn

                    I'm having the exact same problem, only I'm using jboss 3.2.1.

                    There is no "jboss.jcml" to be found under my jboss home directory.
                    I'm assuming that this is file is used by earlier versions of jboss.

                    Does anybody know how to fix this problem in jboss 3.2.1.?


                    • 7. Re: Error creating a Queue
                      jkuhn

                      ok.

                      I got it. It's in the jbossmq-destinations-service.xml file.