title: EJB3 Client Lookup
body: <p>I am trying to invoke a EJB from a standalone Java client, getting the below error. </p>
  
  <p><strong>Lookup code</strong></p>
  
  <pre><code>String localJNDIName = "ejbremote:gcmsnew/gcmsutilbeans.jar/CustomerSurveyManageQstBean#com.smbcgroup.gcms.utility.bl.survey.CustomerSurveyManageQstRemote";
  InitialContext ic = new InitialContext();
  GCMSBaseRemote bean = (GCMSBaseRemote)ic.lookup(localJNDIName);
  </code></pre>
  
  <p><strong>Exception</strong></p>
  
  <blockquote>
    <p>javax.naming.ConfigurationException: NamingManager.getURLContext
    cannot find the factory for this scheme: ejbremote    at
    com.ibm.ws.naming.jndicos.CNContextImpl.checkForUrlContext(CNContextImpl.java:471)
      at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:160)    at
    com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:179)     at
    javax.naming.InitialContext.lookup(Unknown Source)    at
    com.test.EJBClientTest.main(EJBClientTest.java:18)</p>
  </blockquote>
  
  <p><strong>Environment</strong> </p>
  
  <p>RAD 7.5, EJB3. Websphere Application Server 7.0.</p>