12 Replies Latest reply on Jul 10, 2013 2:29 PM by Andrew Rubinger

    Blocking on Admin "reload configuration" operation

    Andrew Rubinger Master

      Hi, all:

       

      I'm executing the following code:

       

      final ModelControllerClient client = ModelControllerClient.Factory.create(InetAddress.getLoopbackAddress(), 9999);
      final ModelNode reloadOperation = new ModelNode();
      reloadOperation.get("operation").set("reload");
      client.execute(reloadOperation));
      

       

      This is a blocking operation *until* the response returns, but triggers a reload of the configuration for the server - and *that* is dispatched asynchronously.  How can I block until the server config is reloaded?

       

      S,

      ALR