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

      Hi,

      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 =
      "/InvokeAction//jboss.mq%3Aservice%3DDestinationManager";


      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

      http://localhost:8080/jmx-console

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

      http://localhost:8080/jmx-console/HtmlAdaptor?
      action=invokeOp&name=jboss.mq:service=DestinationManager&
      methodIndex=4&arg0=myTestQueue

      but this results in an Exception:

      javax.servlet.ServletException: Failed to invoke operation at
      org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.invokeOp(HtmlAdaptorServlet.java:190)

      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