2 Replies Latest reply on Nov 19, 2002 10:08 AM by Matthias Lakämper

    Dynamically Creation of a queue via URL

    Matthias Lakämper Newbie


      in jboss-3.0.0 i have created a queue dynamically via URL.
      The command was something like this:

      //---------------- Pseudo-Code-----------------------------------------
      static final String BASE_URL_ARG =

      String action = "action=" + createQueue + "?action=" + createQueue +
      "&param0%2Bjava.lang.String=" + destName;

      String arg = BASE_URL_ARG + "/" + action;
      URL url = new URL("http", "localhost", 8082, arg);

      //---------------- Pseudo-Code-----------------------------------------

      now i´m working with jboss-3.0.4 and here the url has changed to


      when i try to create the Queue with that Syntax, i think it should be
      something like the following:


      but this results in an Exception:

      javax.servlet.ServletException: Failed to invoke operation at

      javax.management.MalformedObjectNameException: null name
      at javax.management.ObjectName.(ObjectName.java:49)

      - What is wrong in that URL ?

      My next question in this context may be a amateur-Question.
      I don´t find a way, to completely log the actions in the jmx-console.
      If this were possible, i could see the really url.

      I would be glad to get help on this Topic.

      Regards Matthias