1 Reply Latest reply on Aug 1, 2016 12:23 PM by Tomaz Cerar

    jndi-view via http management interface

    Daniel Platz Newbie

      Hi,

      I was wondering what is the correct way in wildfly 10 to execute the equivalent action of this HTTP POST as an HTTP GET from within the browser:

       

      curl --digest -u user:password -L -D - http://localhost:9990/management --header "Content-Type: application/json" -d '{"address":["subsystem","naming"],"operation":"jndi-view","json.pretty":1}'

      So, this POST request works fine and gives the the full jndi-tree.

       

      If i do this:

      http://localhost:9990/management/subsystem/naming?operation=jndi-view

      i get

      "java.lang.IllegalArgumentException: WFLYDMHTTP0005: Invalid operation 'jndi-view'"

       

      If i do this (according to this post: Managing JBoss - WildFly using HTTP/JSON API):

      http://localhost:9990/management/subsystem/naming?name=jndi-view

      i get

      {"binding" : null, "service" : {"remote-naming" : null}}

      So, no actual content.

       

      Is there a way to do this?

       

      Cheers,
      Daniel