Hello Montebove,
may this help
...
InitialContext ctx = new InitialContext();//env);
logg("looking up 'User'");
Object o = ctx.lookup("User");
logg("casting ...");
Object oo = javax.rmi.PortableRemoteObject.narrow( o, UserEJBHome.class);
userHome = (UserEJBHome)oo;
...
don`t use InitialContext with env
Monday, April 17, 2000, 17:22:00, you wrote:
ML> Hi,
ML> I was able to use an EJB on a remote machine from a client application
ML> without any problem setting the right properties into a jndi.properties file
ML> as follows:
ML> java.naming.factory.initial=com.evermind.server.ApplicationClientInitialCont
ML> extFactory
ML> java.naming.provider.url=ormi://host/application
ML> java.naming.security.principal=admin
ML> java.naming.security.credentials=*****
ML> But I wasn't able to do the same from a servlet or JSP. I tried to put the
ML> same jndi.properties file in every dir of OrionServer but I get always the
ML> same javax.naming.NameNotFoundException
ML> What is wrong?
ML> Which is the correct way to do this?
ML> Any help appreciated
ML> Luciano Montebove
ML> Finsiel
ML> [EMAIL PROTECTED]
--
Best regards,
crosswinds.net mailto:[EMAIL PROTECTED]