title: Creating foreign JNDI settings in weblogic and lookup from Java client
body: <p>Please post if there is any example/steps to configuring external LDAP and execute LDAP queries on it.</p>
  
  <p>I tried the following</p>
  
  <ul>
  <li>creating Foreign JNDI Providers </li>
  <li>Created remote and local JNDI names</li>
  <li>from servlet client, I tried lookup using foreign jndi name, local and remote jndi names</li>
  </ul>
  
  <p>Finally lookup with local name succeeded, unfortunately that tried to connect localhost:389. Not sure what went wrong.</p>
  
  <p>Please help with any example.</p>