Java 如何使用Liberty配置文件调用远程EJB服务
我需要使用RMI(MDM)调用远程EJB服务。我要查找以下代码:Java 如何使用Liberty配置文件调用远程EJB服务,java,ejb,websphere-liberty,Java,Ejb,Websphere Liberty,我需要使用RMI(MDM)调用远程EJB服务。我要查找以下代码: 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");
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);
获取以下异常:
[err]org.omg.CORBA.BAD_参数:其他:corbaname评估错误:引发未知用户异常:IDL:omg.org/CosNaming/NamingContext/NotFound:1.0:vmcid:omg次要代码:0xa已完成:否
[错误]位于org.apache.yoko.orb.OB.CorbanameURLScheme\u impl.parse\u url(CorbanameURLScheme\u impl.java:232)
[内部类]中的[错误]
[err]位于javax.naming.InitialContext.lookup(InitialContext.java:428)
我在这里看到一个空格“/requestHandler/beans/”。这是故意的吗?@Tamboli没有空间了。我现在已经编辑过了。你能试着逃离所有的空间吗。(点)在url字符串中,如下url中所述: