This tip shows the way to look up Object in Local Name Space:

      InitialContext c=new initialContext();
      customerLocalHome=(CustomerLocalHomec.lookup("java:comp/env/Customer")

Where Customer is JNDI name of an EJB and customerLocalHome is Local Home Interface of Customer EJB.