I have made two cmp's
1st is AccountManaged
2nd is EjbCustomer
Both having Local home and local component
I then have inserted in ejb-jar.xml
<entity>
<ejb-local-ref>
<description>Reference to application EJB</description>
<ejb-ref-name>ejb_D1</ejb-ref-name>
<ejb-ref-type>Entity</ejb-ref-type>
<local-home>examples.ejb20.basic.containerManaged.CustHome</local-home>
<local>examples.ejb20.basic.containerManaged.Customer</local>
<ejb-link>ejb_D1.jar#EjbCustomer.CustHome</ejb-link>
</ejb-local-ref>
</entity>
then error at deploying my ejb_D1.jar is javax.naming.namenotfoundException
Unable to resolve ejb link
ejb_D1.jar#EjbCustomer.CustHome
And when i made changes to ejb-jar.xml as
<ejb-local-ref>
<description>Reference to application EJB</description>
<ejb-ref-name>AccountManaged</ejb-ref-name>
<ejb-ref-type>Entity</ejb-ref-type>
<local-home>examples.ejb20.basic.containerManaged.AccountHome</local-home>
<local>examples.ejb20.basic.containerManaged.Account</local>
<ejb-link>AccountManaged.AccountHome</ejb-link>
</ejb-local-ref>
</entity>
Then error at deployment of ejb_D1.jar is could not resolve ejb-link
Also at
In weblogic-ejb-jar.xml i have inserted
<weblogic-ejb-jar>
<weblogic-enterprise-bean>
<ejb-name>EjbCustomer</ejb-name>
<entity-descriptor>
<persistence>
<persistence-use>
<type-identifier>WebLogic_CMP_RDBMS</type-identifier>
<type-version>6.0</type-version>
<type-storage>META-INF/weblogic-cmp-rdbms-jar.xml</type-storage>
</persistence-use>
</persistence>
</entity-descriptor>
<local-jndi-name>EjbCustomer.CustHome</local-jndi-name>
</weblogic-enterprise-bean>
</weblogic-ejb-jar>
Please help me regarding this......Tell me how in local or remote can we call an EJB from EJB
1st is AccountManaged
2nd is EjbCustomer
Both having Local home and local component
I then have inserted in ejb-jar.xml
<entity>
<ejb-local-ref>
<description>Reference to application EJB</description>
<ejb-ref-name>ejb_D1</ejb-ref-name>
<ejb-ref-type>Entity</ejb-ref-type>
<local-home>examples.ejb20.basic.containerManaged.CustHome</local-home>
<local>examples.ejb20.basic.containerManaged.Customer</local>
<ejb-link>ejb_D1.jar#EjbCustomer.CustHome</ejb-link>
</ejb-local-ref>
</entity>
then error at deploying my ejb_D1.jar is javax.naming.namenotfoundException
Unable to resolve ejb link
ejb_D1.jar#EjbCustomer.CustHome
And when i made changes to ejb-jar.xml as
<ejb-local-ref>
<description>Reference to application EJB</description>
<ejb-ref-name>AccountManaged</ejb-ref-name>
<ejb-ref-type>Entity</ejb-ref-type>
<local-home>examples.ejb20.basic.containerManaged.AccountHome</local-home>
<local>examples.ejb20.basic.containerManaged.Account</local>
<ejb-link>AccountManaged.AccountHome</ejb-link>
</ejb-local-ref>
</entity>
Then error at deployment of ejb_D1.jar is could not resolve ejb-link
Also at
In weblogic-ejb-jar.xml i have inserted
<weblogic-ejb-jar>
<weblogic-enterprise-bean>
<ejb-name>EjbCustomer</ejb-name>
<entity-descriptor>
<persistence>
<persistence-use>
<type-identifier>WebLogic_CMP_RDBMS</type-identifier>
<type-version>6.0</type-version>
<type-storage>META-INF/weblogic-cmp-rdbms-jar.xml</type-storage>
</persistence-use>
</persistence>
</entity-descriptor>
<local-jndi-name>EjbCustomer.CustHome</local-jndi-name>
</weblogic-enterprise-bean>
</weblogic-ejb-jar>
Please help me regarding this......Tell me how in local or remote can we call an EJB from EJB