on 02-05-2008 10:29 AM
Hi
I am using a Java Bean Model as a model in WD application and this model accesses EJB ...It works fine like my model is imported and it is called also but when i look up for my EJB it throws an exception :NameNotFoundException"
I am using this code:
home = (DepartmentLocalHome)ctx.lookup("DepartmentBean");
When i check the Jndi name for my bean in VA in EJB container -->my EAR project it gives me Jndi name as "DepartmentBean"
Please help why i am getting this error
Monika
Edited by: Monika Jain on Feb 5, 2008 11:30 AM
Hi Monika,
Try performing the lookup using "java:comp/env/DepartmentBean" .
Regards,
Shabeer.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Give a try using
ctx.lookup("localejbs/DepartmentBean")
This article may be of use for you
Specifying Arbitrary JNDI Names for Your Beans
http://help.sap.com/saphelp_nw04/helpdata/en/86/2ccbdefb8f5843958a11062e19fc1d/content.htm
Regards
Ayyapparaj
Hi,
Related link to NameNotFoundException
http://help.sap.com/saphelp_nw04/helpdata/en/2a/6cb11b82d448b49e4bf3790dc2a215/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/10/661841a66af223e10000000a155106/frameset.htm
With Regards,
Laksh.
User | Count |
---|---|
71 | |
26 | |
10 | |
9 | |
7 | |
6 | |
4 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.