I am trying to access a CMP through a SessionBean.
The jndi name of the CMP ("EMPLOYEE_DATA") is "saddy/EMPLOYEE_DATALocalHome".
Now my problem is when i try to access my CMp through the Session Bean using jndi name "java:comp/env/ejb/EMPLOYEE_DATALocalHome" or "java:comp/env/ejb/saddy/EMPLOYEE_DATALocalHome" i get exception where as the same code works if i use jndi name as "local:/ejb/saddy/EMPLOYEE_DATALocalHome".
I am unable to understand what is wrong in my code, why i am not able to access my CMP in a normal way.
Sorry for the way i have displayed the content of ejb-jar.xml, as i was unable to put it in better format using UBB code.