Working of Entity Bean with Directory Server

Discussions

EJB design: Working of Entity Bean with Directory Server

  1. Hello,
       I want to know wheather to entity bean can
       read from the Directory Server through LDAP.
       Thanks in Advance.

    Bye
    C.Bhaskaran
  2. Hi,
    sorry .i couldnt get ur question properly..
    so i am taking in the following way.....

    "I want to know wheather a entity bean can be read from the Directory Server through LDAP."
    yeh,
      u can do the same using JNDI.
      infact EJB 1.1 specification suggets u to do the same.
      if u use JNDI ur code will be potable to various directory servers also.
    thanks
    subbu

     

  3. with ejb you can communicate with a directory server in the same way as you do with an ordinary java object. if you are using NetscapeDirectoryServer, then you could use the LDAPSDK provided by them.
  4. sure...
    u can use the corresponding API of the direcory server.
    but ur code wont be portable across directory servers.
    if u want portability go for JNDI.

    subbu