3 Replies Latest reply on Jun 8, 2016 9:04 AM by berhauz

    How to view the jndi tree?

      hi like weblogic can we see all the bounded jndi names and all? if so how?

        • 1. Re: How to view the jndi tree?
          pinan

          From a posting by jaikiran posted on : Sun Feb 17, 2008

          - Go to http://< server>:< port>/jmx-console (Ex: http://localhost:8080/jmx-console)
          - Search for service=JNDIView on the jmx-console page [ITS NEAR the top of the PAGE]
          - Click on that link
          - On the page that comes up click on the Invoke button beside the list() method
          - The page that comes up will show the contents of the JNDI tree.

          Search for your bean here and find out what's it jndi-name. The use it in your code during the lookup.

          • 2. Re: How to view the jndi tree?
            nazia24

            Hi,

             

               Using CLI, you can view jndi-tree like this

                     

                                          /subsystem=naming:jndi-view()

            • 3. Re: How to view the jndi tree?
              berhauz

              in DOMAIN mode, jBoss 7, it becomes, either:

              (you'll need to adjust to your names for the server groups, hosts, and servers)

               

              a) via the web admin console: http://localhost:9990/console/App.html#hosts/naming

              navigate to: RUNTIME >  Server Groups    >  main-server >  server-one    >  Subsystems >  JNDI View

               

              b) via jboss-cli (in <JBOSS-root>\bin) commands:

              connect

              /host=master/server=server-one/subsystem=naming/:jndi-view

               

              c) via jconsole (in <JBOSS-root>\bin)

              use jBoss EAP CLI tab and connect to port 9990 (or some greater port number if you configured ports with an increment)

              build a command like: /host=master/server=server-one/subsystem=naming/:jndi-view

              and submit