我需要使用RMI(MDM)调用远程EJB服务。我正在使用Liberty JEE完整配置文件。我在下面的代码中查找:
InitialContext ctx = new InitialContext();
Object obj = ctx.lookup("corbaname:iiop:mydomain:9810#ejb/com/dwl/base/requestHandler/beans/DWLServiceController!com.dwl.base.requestHandler.beans.DWLServiceControllerHome");
dwlServiceControllerHome = (DWLServiceControllerHome) PortableRemoteObject.narrow(obj, DWLServiceControllerHome.class);
获得以下例外:
[错误] org.omg.CORBA.BAD_PARAM:其他:corbaname评估错误:引发了一个未知的用户异常:IDL:omg.org/CosNaming/NamingContext/NotFound:1.0:vmcid:OMG次要代码:0xa已完成:没有 [错误]在org.apache.yoko.orb.OB.CorbanameURLScheme_impl.parse_url(corbanameURLScheme_impl.java:232) [内部班级] [错误] [错误]在javax.naming.InitialContext.lookup(InitialContext.java:428)