ops i missed the code for the listing it is 
        Context ctx = new InitialContext();
                ctx.addToEnvironment("java.naming.factory.initial", 
"org.jnp.interfaces.NamingContextFactory");
                ctx.addToEnvironment("java.naming.factory.url.pkgs", 
"org.jboss.naming:org.jnp.interfaces");
                
ctx.addToEnvironment(Context.PROVIDER_URL,"jnp://localhost:1099");
                NamingEnumeration it = ctx.list("");
                Object obj;
                
                while (it.hasMoreElements()) {
                    obj = it.nextElement();
                    System.out.println(obj);
                }

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3957117
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to