[jboss-user] [EJB 3.0] - Re: Remote Client to EJB 3.0 fail .. :( javax.naming.Communi

J0Ke do-not-reply at jboss.com
Tue Jul 11 15:17:15 EDT 2006


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



More information about the jboss-user mailing list