菜鸟提问一个jndi的问题!
Context context = getInitialContext();
Object ref = context.lookup("TestBMP");
程序执行到第二句的时候,报错:javax.naming.LinkException: . Root exception is javax.naming.NameNotFoundException: remaining name: /app/ejb/TestModule.jar#TestBMP/local-home
问题出在哪里?另外,我想知道lookup(String str)中的str是否直接就写remote接口,需要制定路径吗?