2 Replies Latest reply on Apr 7, 2004 10:12 AM by cane74

    Problem with relation between EJBs

    cane74 Newbie

      Hi.

      I wrote Entity EJB which access LDAP and I can't make relation between CMP EJB accessing DB and this one. Server tries to find an entity in DB but this is LDAP EJB so I always get an error. Below are code fragments.

      Thanks for any ideas,
      Bart

      Code from UzytkownikBean (master):

       /**
       * @ejb.interface-method view-type="local"
       *
       * @ejb.relation name="uzytkownik-uzytkownikInfo"
       * role-name="uzytkownik-ma-uzytkownikInfo"
       */
       public abstract java.util.Collection getInfo();
      
       /**
       * @ejb.interface-method view-type="local"
       */
       public abstract void setInfo(UzytkownikInfoLocal _info);
      


      Code from UzytkownikInfoBean (source):

       /**
       *
       * @ejb.interface-method view-type="local"
       *
       * @ejb.relation name="uzytkownik-uzytkownikInfo"
       * role-name="uzytkownikInfo-nalezydo-uzytkownik"
       * target-ejb="Uzytkownik"
       *
       *
       */
       public abstract UzytkownikLocal getUzytkownik();
      
      
       /**
       *
       * @param _user UzytkownikBean
       *
       * @ejb:interface-method view-type="local"
       */
       public abstract void setUzytkownik(UzytkownikLocal _user);