Hello, to everyone.
I m new in J2EE, and I'm creating a client application, but I have a issue looking for jndi of my EJB.
//"com.sun.jndi.cosnaming.CNCtxFactory"
//"com.sun.jndi.rmi.registry.RegistryContextFactory"
Properties prts = new Properties();
prts.put(InitialContext.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.cosnaming.CNCtxFactory");
prts.put(InitialContext.PROVIDER_URL,"iiop://192.168.0.155:3700");
prts.put(InitialContext.SECURITY_PRINCIPAL, "admin");
prts.put(InitialContext.SECURITY_CREDENTIALS,"adminadmin");
InitialContext ctx = new InitialContext(prts);
BeanPrincipalRemote MainB= (MainBeanRemote)ctx.lookup("java:global/applications/EJBModule1/MainBean!web.MainBean");
System.out.print(MainB.Som(2, 2));
but Som is returning null. Can anyone tell me what's wrong with my code ?
[Message sent by forum member 'pedrohms']
http://forums.java.net/jive/thread.jspa?messageID=482224