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
<ejb-jar>
  <enterprise-beans>
    <session>
      <ejb-name>Math</ejb-name>
      <home>MathHome</home>
      <remote>Math</remote>
      <ejb-class>MathBean</ejb-class>
      <session-type>Stateless</session-type>
      <transaction-type>Container</transaction-type>
    </session>
  </enterprise-beans>
</ejb-jar>

Reply via email to