1 Reply Latest reply on Oct 25, 2006 8:29 AM by jerrygauth

    How to list all binding

    bluetrade

      Hi,
      how do I list all the bindings of my JBoss application server? I would like to become more familiar with where and how it binds my EJBs - from different war/ear files, - is there a way to list all of them?

      I tried

      InitialContext jndiContext = new InitialContext();
      System.out.println(jndiContext);
       NamingEnumeration ne = jndiContext.listBindings("java:comp/env");
      while (ne.hasMoreElements()){
       System.out.println("NE:"+ne.nextElement());
       }
      


      but that doesn't seem to help...
      Thanks a lot!
      Joey

        • 1. Re: How to list all binding

          You can see all the bindings by opening the JBoss JMX Console, selecting the JNDIView service, and then invoking the list() method. This will show the bindings for all your war files. You can also examine the source code for this service to see how it locates the bindings.