1 Reply Latest reply on Jul 21, 2005 8:30 AM by darranl

    problems with <ejb-link> in web.xml........

    paulofe

      hi all,,,,
      in my web.xml i have:

      <web-app>
      <ejb-local-ref>
      <ejb-ref-name>ejb/Funcionario_Entity</ejb-ref-name>
      <ejb-ref-type>Entity</ejb-ref-type>
      <local-home>br.com.funcionario.entity.FuncionarioHome</local-home>
      br.com.funcionario.entity.Funcionario
      <ejb-link>Funcionario_Entity</ejb-link>
      </ejb-local-ref>
      </web-app>

      its works..... but if i remove the tag <ejb-link> in my console i have:
      no <ejb-link> in web.xml and no jndi-name in jboss-web.xml),,,, but i have too <jboss-web.xml> as below:

      <jboss-web>
      <ejb-ref>
      <ejb-ref-name>ejb/Funcionario_Session</ejb-ref-name>
      <jndi-name>ejb/Funcionario_Session</jndi-name>
      </ejb-ref>
      </jboss-web>


      my ejb-jar is :::

      <ebj-jar>
      .........................

      <ejb-name>Funcionario_Session</ejb-name>
      br.com.funcionario.session.FuncionarioHome
      br.com.funcionario.session.Funcionario
      <ejb-class>br.com.funcionario.session.FuncionarioBean</ejb-class>
      <session-type>Stateful</session-type>
      <transaction-type>Container</transaction-type>


      <ejb-local-ref>
      <ejb-ref-name>ejb/Funcionario_Entity</ejb-ref-name>
      <ejb-ref-type>Entity</ejb-ref-type>
      <local-home>br.com.funcionario.entity.FuncionarioHome</local-home>
      br.com.funcionario.entity.Funcionario
      <ejb-link>Funcionario_Entity</ejb-link>
      </ejb-local-ref>



      ...........................
      </ejb-jar>
      thanks a lot ... for everybody...