• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with JNDI Name in CMP

 
Prakash Dwivedi
Ranch Hand
Posts: 452
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Friends,

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.

Please help.
[ May 26, 2004: Message edited by: Prakash Dwivedi ]
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34396
346
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Prakash,
WSAD uses / for remote interfaces and local:ejb/ for local interfaces. Since you only have the local interfaces in your xml file, that is all the JNDI can find.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic