Я хотел бы настроить два сервера приложений Websphere для связи друг с другом с помощью удаленного EJB.
Сервер1 настроен с EJB с jndi с именем remote / test.
Сервер2 в именовании ->Привязки пространства имен -> new -> CORBA
Идентификатор привязки
значение -> Bean1
Имя в пространстве имен относительнодля поиска префикса имени ** ячейка / узлы / DefaultNode01 / серверы / сервер1 / **
значение-> удаленный / тест
Corbaname URL
значение -> corbaname: iiop: 172.18.0.3: 2809 # remote / test
Вызов EJB на сервере2:
@EJB(lookup="remote/test")
EjbInterface ejbBean;
Exception:
Caused by: org.omg.CORBA.UNKNOWN: Unexpected exception resolving URL "corbaname:iiop:172.18.0.3:2809": org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0 vmcid: 0x0 minor code: 0 completed: No
at com.ibm.ws.naming.ipcos.CorbaUrlResolver.resolveUrl(CorbaUrlResolver.java:402)
at com.ibm.ws.naming.ipcos.WsnOptimizedNamingImpl.resolveUnresolvedBinding(WsnOptimizedNamingImpl.java:1967)
at com.ibm.ws.naming.ipcos.WsnOptimizedNamingImpl.resolve_binding(WsnOptimizedNamingImpl.java:1685)
at com.ibm.ws.naming.ipcos.WsnOptimizedNamingImpl.do_resolve_complete_info(WsnOptimizedNamingImpl.java:625)
at com.ibm.ws.naming.cosbase.WsnOptimizedNamingImplBase.resolve_complete_info(WsnOptimizedNamingImplBase.java:2216)
at com.ibm.WsnOptimizedNaming._NamingContextStub.resolve_complete_info(_NamingContextStub.java:538)
at com.ibm.ws.naming.jndicos.CNContextImpl$2.run(CNContextImpl.java:2958)
at com.ibm.ws.naming.jndicos.CNContextImpl$2.run(CNContextImpl.java:2954)
at com.ibm.ws.naming.util.CommonHelpers.retry(CommonHelpers.java:871)
at com.ibm.ws.naming.jndicos.CNContextImpl.cosResolve(CNContextImpl.java:2952)
at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1818)
... 48 more
Caused by: org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0
at org.omg.CosNaming.NamingContextPackage.NotFoundHelper.read(NotFoundHelper.java:95)
at com.ibm.WsnOptimizedNaming._NamingContextStub.resolve_complete_info(_NamingContextStub.java:506)
at com.ibm.ws.naming.ipcos.CorbaUrlResolver$1.run(CorbaUrlResolver.java:487)
at com.ibm.ws.naming.ipcos.CorbaUrlResolver$1.run(CorbaUrlResolver.java:483)
at com.ibm.ws.naming.util.CommonHelpers.retry(CommonHelpers.java:871)
at com.ibm.ws.naming.ipcos.CorbaUrlResolver.resolveStringifiedName(CorbaUrlResolver.java:482)
at com.ibm.ws.naming.ipcos.CorbaUrlResolver.resolveUrl(CorbaUrlResolver.java:395)
... 58 more