[jboss-user] [JNDI/Naming/Network] - Re: InitialContext.lookup returns null

mashiur_valo do-not-reply at jboss.com
Wed Nov 1 01:00:56 EST 2006


In my jndi.properties file I have written as follows

java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.provider.url=jnp://192.168.1.104:1099
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces

My client program is as follows

1. Properties prop=new Properties(new FileInputStream("jndi.properties"));      
2. InitialContext context=new InitialContext(prop); 
3. Object obj=context.lookup("MyEjb");


Line 1 and 2 has no problem, but in line 3 when I look up my ejb in server it returns null. I am not using any firewall and my necessary ports are open.

When I run my java client program in linux machine where my JBoss server is located then no problem occurs.


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

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



More information about the jboss-user mailing list