2 Replies Latest reply on Jul 20, 2005 5:29 PM by paulofe

    why to use jboss.xml ?????

    paulofe

      hello everbody....!!
      in my app i have
      web.xml:

      <web-app>
      ...............

      <ejb-ref>
      <ejb-ref-name>ejb/Funcionario_Session</ejb-ref-name>
      <ejb-ref-type>Session</ejb-ref-type>
      br.com.funcionario.session.FuncionarioHome
      br.com.funcionario.session.Funcionario
      <ejb-link>Funcionario_Session</ejb-link>
      </ejb-ref>
      ................
      </web-app>

      my ejb-jar:

      <ejb-jar>
      <enterprise-beans>

      <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-name>Funcionario_Entity</ejb-name>
      <local-home>br.com.funcionario.entity.FuncionarioHome</local-home>
      br.com.funcionario.entity.Funcionario
      <ejb-class>br.com.funcionario.entity.FuncionarioEntity</ejb-class>
      <persistence-type>Container</persistence-type>
      <prim-key-class>java.lang.Integer</prim-key-class>
      false
      <cmp-version>2.x</cmp-version>
      <abstract-schema-name>Funcionario_Schema</abstract-schema-name>
      ................


      </enterprise-beans>

      </ejb-jar>

      and i have the jboss.xml:


      <enterprise-beans>

      <ejb-name>Funcionario_Session</ejb-name>
      <jndi-name>ejb/Funcionario_Session</jndi-name>




      <ejb-name>Funcionario_Entity</ejb-name>
      <jndi-name>ejb/Funcionario_Entity</jndi-name>


      </enterprise-beans>
      <resource-managers>
      </resource-managers>




      BUT if i remove this file of my app ,,,, she run without none problem..
      then so that it serves jboss.xml?????

        • 1. Re: why to use jboss.xml ?????
          darranl

          The jboss.xml deployment descriptor is for setting JBoss specific configuration for your deployments, for the values in the jboss.xml JBoss assumes default values if nothing is set.

          You are not taking advantage of any JBoss specific configuration so you do not need the jboss.xml file so you can safely remove it.

          • 2. Re: why to use jboss.xml ?????
            paulofe

            dear darranl,,, you sad "The jboss.xml deployment descriptor is for setting JBoss specific configuration for your deployments" but what "specific configuration " you refer ????
            thanks a lot for your help!!!