4 Replies Latest reply on Feb 16, 2015 4:57 AM by Igor Chernysh

    Trouble with invoking HornetQServerControl:addAddressSettings(...) method

    Igor Chernysh Newbie

      My goal is to update address settings. In order to do this I am getting address settings as JSON by invoking HornetQServerControl:getAddressSettingsAsJSON. Than I performing the update on certain property in received JSONObject.

      Than I am invoking HornetQServerControl:addAddressSettings as followed:

       

      JMSManagementHelper.putOperationInvocation(message, ResourceNames.CORE_SERVER, "addAddressSettings",

                          "jms.queue.#",

                          "jms.queue.deadLetterQueue",

                          "jms.queue.expiryQueue",

                          addressSettingsJsonObj.get("lastValueQueue"),

                          addressSettingsJsonObj.get("maxDeliveryAttempts"),

                          maxSizeBytes,

                          addressSettingsJsonObj.get("pageSizeBytes"),

                          addressSettingsJsonObj.get("pageCacheMaxSize"),

                          redeliveryDelay,

                          redistributionDelay,

                          addressSettingsJsonObj.get("sendToDLAOnNoRoute"),

                          addressSettingsJsonObj.get("addressFullMessagePolicy"

      );

       

      Each time I got this result - HQ119069: no operation addAddressSettings/12

       

      The type and the order of input parameters is correct.

      What is the correct way to update AddressSettings using management API ?

       

      HornetQ version is 2.4.0.Final.

       

      Thanks,

      Igor.