Did you got any error or exception while trying to access the bean?I think you may get a security related exception
regards Sasi. ----- Original Message ----- From: "Grum Ketema" <[EMAIL PROTECTED]> To: "Orion-Interest" <[EMAIL PROTECTED]> Sent: Wednesday, April 24, 2002 6:54 AM Subject: Accessing an EJB in Orion App server from a servlet in Iplanet > Hello, > > I have been trying to access an EJB deployed in Orion app server from a > servlet deployed in Iplanet. I have > the following code in the servlet > > Hashtable env = new Hashtable(); > > env.put(Context.INITIAL_CONTEXT_FACTORY, > "com.evermind.server.rmi.RMIInitialContextFactory"); > env.put(Context.PROVIDER_URL, "ormi://nap1/fredWeb"); > env.put(Context.SECURITY_PRINCIPAL, "admin"); > env.put(Context.SECURITY_CREDENTIALS, "xyz"); > Context ctx = new InitialContext(env); > > Object homeObject = ctx.lookup("fred/fredBean"); > > The ctx.lookup() call hangs for ever. If I replace > Object homeObject = ctx.lookup("fred/fredBean"); > > With this same code I can access the bean from a stand alone client. > I have been struggling with this for a few days and nothing seems to work. > All suggestions are appreciated > Regards, > Grum > > > >