1 Reply Latest reply on Apr 17, 2002 5:00 PM by Enrique Rodriguez

    references between ejbs in differents jars same ear

    Enrique Rodriguez Newbie

      Hi all,

      I don't see de way to do it, the documentation is not very clear, becouse it don't say nothing about two ejbs in diferent jars in SAME EAR.

      What i'm trying to do is this:
      jarA ---reference --> jarB
      ._in ejb-jar.xml of jarA
      <ejb-ref>
      <ejb-ref-name>ejb/SequenceGenerator/SequenceSession</ejb-ref-name>
      <ejb-ref-type>Entity</ejb-ref-type>
      com.musickommunity.sequencegenerator.interfaces.SequenceSessionHome
      com.musickommunity.sequencegenerator.interfaces.SequenceSession
      </ejb-ref>

      .-in jboss.xml of jarA


      <ejb-name>Forum/Forum</ejb-name>
      <ejb-ref>
      <ejb-ref-name>ejb/SequenceGenerator/SequenceSession</ejb-ref-name>
      <jndi-name>SequenceGenerator/SequenceSession</jndi-name>
      </ejb-ref>


      .-jarB config files are very normals.

      i get this error when i deploy my ear

      org.jboss.deployment.DeploymentException: ejb-ref ejb/SequenceGenerator/SequenceSession, expected either ejb-link in ejb
      -jar.xml or jndi-name in jboss.xml

      I hope someone could help me.

      Regards, Enrique.