5 Replies Latest reply on Jul 8, 2002 5:48 AM by Prashant Patel

    <relationship-role-source> in diffrent jar files.

    Prashant Patel Newbie

      How do you create a reationship(1:1) whose
      <relationship-role-source> are in diffrent jar files.
      works when all class files and single ejb-jar.xml are in one jar file. does not work when in diffrent jar files


      <ejb-relation>
      <ejb-relation-name>Account-CommunicationInfo</ejb-relation-name>
      <ejb-relationship-role>
      <ejb-relationship-role-name>
      Account-has-CommunicationInfo
      </ejb-relationship-role-name>
      One
      <relationship-role-source>
      <ejb-name>AccountEntity</ejb-name>
      </relationship-role-source>
      <cmr-field>
      <cmr-field-name>CommInfo</cmr-field-name>
      </cmr-field>
      </ejb-relationship-role>

      <ejb-relationship-role>
      <ejb-relationship-role-name>
      Account-has-Communication
      </ejb-relationship-role-name>
      One
      <relationship-role-source>
      <ejb-name>CommunicationInfoEntity</ejb-name>
      </relationship-role-source>
      </ejb-relationship-role>
      </ejb-relation>

      This description is contained in account.jar

      here deployer give an exception that
      <ejb-name>CommunicationInfoEntity</ejb-name> rather
      "CommunicationInfoEntity" is not found which is declared in a diffrent jar file(communication.jar).
      how do i set this kind of relation ship