hellow friends,
i have developped an
ejb(TestBean), here what i have written :
Properties env = new Properties();
env.setProperty(Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.cosnaming.CNCtxFactory");
env.setProperty("java.naming.provider.url", "iiop://localhost:3700");
InitialContext ic = new InitialContext(env);
Object objref = ic.lookup("ejb/TestBean");
TestHome tt =(TestHome) PortableRemoteObject.narrow(objref, TestHome.class);
ty=tt.create();
but when i try to do this : tt.create(); an error message appear :
java.lang.NullPointerException in this line.
is there someOne to help me.
thank you.