3 Replies Latest reply on Jul 9, 2002 10:48 PM by tp67

    How to use local home in ejb2.0 spc

    tp67 Newbie

      who give me a hand.
      I need that on a session bean use entity bean with local interface .butI don't know how to config jndi name in DTD.
      had better have a example

        • 2. Re: How to use local home in ejb2.0 spc
          tp67 Newbie

          can you tell me that what shall place on tag middle <ejb-link></ejb-kink>.when I use a session bean to invoke loacl interface entity bean.

          • 3. error message and DD document,help me
            tp67 Newbie

            I meet error when I deploy my application. error message report:
            file:/E:/download/jboss/jboss-3.0.0_tomcat-4.0.3/jboss-3.0.0_tomcat-4.0.3/server/default/deploy/ejb2.jar
            org.jboss.deployment.DeploymentException: Bean teteejb20.MaterialBean not found within this application.
            ..........................
            DD document following:
            <ejb-jar>
            <enterprise-beans>

            <display-name>UseEntity</display-name>
            <ejb-name>UseEntity</ejb-name>
            teteejb20.UseEntityHome
            teteejb20.UseEntity
            <ejb-class>teteejb20.UseEntityBean</ejb-class>
            <session-type>Stateless</session-type>
            <transaction-type>Container</transaction-type>
            <ejb-local-ref>
            material home
            <ejb-ref-name>ejb/Material</ejb-ref-name>
            <ejb-ref-type>Entity</ejb-ref-type>
            <local-home>teteejb20.MaterialHome</local-home>
            teteejb20.Material
            <ejb-link>teteejb20.MaterialBean</ejb-link>
            </ejb-local-ref>


            <display-name>Material</display-name>
            <ejb-name>Material</ejb-name>
            <local-home>teteejb20.MaterialHome</local-home>
            teteejb20.Material
            <ejb-class>teteejb20.MaterialBean</ejb-class>
            <persistence-type>Container</persistence-type>
            <prim-key-class>java.lang.String</prim-key-class>
            False
            <cmp-version>2.x</cmp-version>
            <abstract-schema-name>Material</abstract-schema-name>
            <cmp-field>
            <field-name>name</field-name>
            </cmp-field>
            <cmp-field>
            <field-name>attribute</field-name>
            </cmp-field>
            <cmp-field>
            <field-name>count</field-name>
            </cmp-field>
            <cmp-field>
            <field-name>unit</field-name>
            </cmp-field>
            <primkey-field>name</primkey-field>

            </enterprise-beans>
            <assembly-descriptor>
            <container-transaction>

            <ejb-name>Material</ejb-name>
            <method-name>*</method-name>


            <ejb-name>UseEntity</ejb-name>
            <method-name>*</method-name>

            <trans-attribute>Required</trans-attribute>
            </container-transaction>
            </assembly-descriptor>
            </ejb-jar>