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

    How to list all binding

    flo thomas Newbie

      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