5 Replies Latest reply on Mar 24, 2002 3:38 PM by pra

    Why does MDB prepend queue/ to name

    pcallies

      I've written a JMSProvider for MQSeries and I've configured an external naming context for my administeed objects, but I'm stuck because the MDB container appears to be prepending my queue name with "queue/". Why does it do this and is there a way around it?

        • 1. Re: Why does MDB prepend queue/ to name
          slz1972

          JBossMQ uses jndi to lookup administered JMS objects, such as Queue and Topic.

          The jndi or jnp of JBoss uses Unix-like file system to store objects.

          queue/ , in this case, indicates a directory name containing various queues names.

          hope that helps

          sheng

          • 2. Re: Why does MDB prepend queue/ to name
            pcallies

            Thanks for trying, but that tells me what JBossMQ does, not why the message-driven bean plugin assumes that queues will be prefixed with the queue/ directory.

            It seems an assumption was made that the MDB would never be used with another messaging system. It would have been better to take the value of the destination-jndi-name element of the jboss.xml deployment descriptor as-is. People who are running against JBossMQ would need to prefix their destinations with "queue/" or "topic/", but it would open the door to other messaging systems.

            I guess I'll take a shot at making the change myself and see how it works.

            • 3. Re: Why does MDB prepend queue/ to name

              It was done totaly pluggable from start. Then someone introduced sopme magic when a destination was not there and the code became unportable. If you solve this, pleas contribute a patch.

              //Peter

              • 4. Re: Why does MDB prepend queue/ to name
                amueller

                > It was done totaly pluggable from start. Then someone
                > introduced sopme magic when a destination was not
                > there and the code became unportable.

                Yeah, you need some kind of quality control (a 'board' or whatever). Contributing a change over a change doesn't work.

                Andreas

                • 5. Re: Why does MDB prepend queue/ to name

                  Yea, but that particular change WAS much depated an introduced against mine and Hirams recomendation. I do not want to dvelve into it; but I did lose the lust to fix the problem.

                  //Peter