Hi,
I have deployed my bean and its having both local and remote
interfaces. If i do remoke lookup then its working fine but with I go for
local lookup its giving the following error :
javax.naming.LinkException: [Root exception is
javax.naming.NameNotFoundException: While trying to
look up /app/ejb/advice.jar#AdviceBean/local-home in
/app/webapp/webapplication/12817424.; remaining
name '/app/ejb/advice/jar#AdviceBean/local-home']; Link Remaining Name:
'
java:app/ejb/advice.jar#Ad
viceBean/local-home'
My client code is :
InitialContext cntx = getContext();
Object obj = cntx.lookup("AdviceLocalBean");
AdviceBeanLocalHome home = (AdviceBeanLocalHome) obj;
AdviceBeanLocalRemote rem = home.create();
System.out.println(rem.getAdvice());
I check the weblogic JNDI tree and its showing the Bind Name for the local
bean JNDI.
Any help is highly appreciated.
Regards,
Sawan