----- Message d'origine -----
De : DaveFord <[EMAIL PROTECTED]>
� : Orion-Interest <[EMAIL PROTECTED]>
Envoy� : mercredi 15 mars 2000 14:51
Objet : ctx.lookup("myEjb") hangs


> I have a piece of code that attempts to lookp an ejb. Problem is,
lookup(..)
> hangs. IOW, lookup never returns. Here is the code:
>
>     java.util.Properties p = new java.util.Properties();
>
>
p.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY,"com.evermind.server.Appl
> icationClientInitialContextFactory");
>     p.put(javax.naming.Context.PROVIDER_URL,"ormi://localhost/DaveApp");
>     p.put(javax.naming.Context.SECURITY_PRINCIPAL,"admin");
>     p.put(javax.naming.Context.SECURITY_CREDENTIALS,"admin");
>     System.out.println("Aquiring Initial Naming Context..");
>     javax.naming.Context ctx = new javax.naming.InitialContext(p);
>     System.out.println("Looking up Math Home...");
>     Object o = ctx.lookup("Math");  /*****  THIS METHOD NEVER RETURNS
*****/
>     System.out.println("Math Home aquired!");
>
> Any suggestions? (attached is the ejb-jar.xml file, if that helps).
>
> Thanks in advance
>
> Dave
>

Reply via email to