[jboss-user] [JNDI/Naming/Network] - How to list all binding

bluetrade do-not-reply at jboss.com
Wed Oct 25 07:12:43 EDT 2006


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

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3980662#3980662

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3980662



More information about the jboss-user mailing list