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.
Sawan<br />SCJP,SCWCD,SCBCD<br /> <br />Every exit is an entry somewhere.
When you access a local interface, it must be deployed in the same JVM instance as the class/jsp from where you are accessing it. If you have deployed your EJB separately and your other classes separately, the local interface may not work. Try deploying everything as an ear file.