JNDI Name is used for looking up the EJB Home objects. The EJB Reference name is used to indicate that you are referring the EJB's with the given name(i.e test/myEjb). Suppose if you are calling two entity bean methods inside your session bean, you have to indicate the two ejb reference names for this two Entity Beans for better packaging and if you want to use the Entity beans the if you have to get the home object by their JNDI lookups and <B>NOT BY their ejb reference names </B>.
Regards, M.S.Raman
Yi Meng
Ranch Hand
Joined: May 07, 2003
Posts: 270
posted
0
Originally posted by Malli Raman: Hi,
JNDI Name is used for looking up the EJB Home objects. The EJB Reference name is used to indicate that you are referring the EJB's with the given name(i.e test/myEjb). Suppose if you are calling two entity bean methods inside your session bean, you have to indicate the two ejb reference names for this two Entity Beans for better packaging and if you want to use the Entity beans the if you have to get the home object by their JNDI lookups and <B>NOT BY their ejb reference names </B>.
Regards, M.S.Raman
I am just using a JSP(servlet) to call my SLSB on a remote server......
There is no EJB-EJB communication involved at all.
Malli Raman
Ranch Hand
Joined: Nov 07, 2001
Posts: 312
posted
0
Originally posted by Yi Meng:
I am just using a JSP(servlet) to call my SLSB on a remote server......
There is no EJB-EJB communication involved at all.
EJB Reference name is basically used for packaging purpose only. In the application while creating the EAR file, you have to declare EJB reference name (which is used to identify that EJB/Web(in your case) component is linked with the EJB Component.
Regards, M.S.Raman
Yi Meng
Ranch Hand
Joined: May 07, 2003
Posts: 270
posted
0
In my case, i do not even have a ear file.
I have the ejb jar deployed at serverA and a web component war deployed at serverB with the client jar......
Malli Raman
Ranch Hand
Joined: Nov 07, 2001
Posts: 312
posted
0
Originally posted by Yi Meng: In my case, i do not even have a ear file.
I have the ejb jar deployed at serverA and a web component war deployed at serverB with the client jar......
EJB-LINK is used to refer the another EJB's in the DD.