2 Replies Latest reply on Apr 16, 2012 7:22 AM by jaikiran

    jboss-cli changes are not stored in the xml configuration file

    hans-juergen.stemmer.vkb.de

      Hi all,

       

      executing the command


      [standalone@localhost:9999 /] /subsystem=messaging:read-resource(recursive=true)

       

      I get something like this

       

      {

          "outcome" => "success",

          "result" => {"hornetq-server" => {"default" => {

              "acceptor" => undefined,

              "allow-failback" => true,

              "async-connection-execution-enabled" => true,

                ....

              },

              "pooled-connection-factory" => {"hornetq-ra" => {

                  "auto-group" => false,

                  "block-on-acknowledge" => false,

                  "block-on-durable-send" => true,

                  "block-on-non-durable-send" => false,

                  "cache-large-message-client" => false,

                  "call-timeout" => 30000L,

                  "client-failure-check-period" => 30000L,

                  "client-id" => undefined,

                  "confirmation-window-size" => -1,

                  "connection-load-balancing-policy-class-name" => "org.hornetq.api.core.client.loadbalance.RoundRobinConnectionLoadBalancingPolicy",

                  "connection-ttl" => 60000L,

                  "connector" => {"netty" => undefined},

                  "consumer-max-rate" => -1,

                  "consumer-window-size" => 1048576,

                  "discovery-group-name" => undefined,

                  "discovery-initial-wait-timeout" => undefined,

                  "dups-ok-batch-size" => 1048576,

                  "entries" => ["java:/JmsXA"],

                  "failover-on-initial-connection" => false,

                  "failover-on-server-shutdown" => undefined,

                  "group-id" => undefined,

                  "ha" => false,

                  "jndi-params" => undefined,

                  "max-retry-interval" => 2000L,

                  "min-large-message-size" => 102400,

                 "password" => undefined,

                  "pre-acknowledge" => false,

                  "producer-max-rate" => -1,

                  "producer-window-size" => 65536,

                  "reconnect-attempts" => 0,

                  "retry-interval" => 2000L,

                  "retry-interval-multiplier" => 1.0,

                  "scheduled-thread-pool-max-size" => 5,

                  "setup-attempts" => undefined,

                  "setup-interval" => undefined,

                  "thread-pool-max-size" => -1,

                  "transaction" => "xa",

                  "transaction-batch-size" => 1048576,

                  "use-global-pools" => true,

                  "use-jndi" => undefined,

                  "use-local-tx" => undefined,

                 "user" => undefined

              }}, ......

      }

       

      where user is undefined.

       

      Then I set values for user and password which seems to be successful.

       

      [standalone@localhost:9999 /] /subsystem=messaging/hornetq-server=default/pooled-connection-factory=hornetq-ra
      :write-attribute(name=user, value=guest)
      {
          "outcome" => "success",
          "response-headers" => {
              "operation-requires-reload" => true,
              "process-state" => "reload-required"
          }
      }
      [standalone@localhost:9999 /] /subsystem=messaging/hornetq-server=default/pooled-connection-factory=hornetq-ra
      :write-attribute(name=password, value=guest)
      {
          "outcome" => "success",
          "response-headers" => {
              "operation-requires-reload" => true,
              "process-state" => "reload-required"
          }

       

      Executing :read-resource again shows that username and password are set.

           .....

                  "use-jndi" => undefined,

                  "use-local-tx" => undefined,

                  "user" => "guest"

              }},

       

      But the standalone.xml is not changed/stored and after reloading the configuration (or restarting the server) the properties user and password are again undefined.

       

      Is there a bug in jboss-cli or am I doing anything wrong.

       

      I would be thankful for any help.

       

      hans