Corba NameService configuration in Websphere 8.5.5

怎甘沉沦 提交于 2019-12-11 09:37:39

问题


As part of my application requirement, I have to configure a attribute called "ORBInitRef.NameService=corbaloc:iiop:ABCDE012:14888/NameService" in Websphere 8.5.5. Earlier i have used Jboss for my applciation deployment but now have to use WAS. In, WAS where should i have to configure this attribute in admin console? Is there any way to do it through orb.properties file in WAS root folder. Please let me know to approach??


回答1:


Please follow the below steps to configurable Corba Name service in WAS 8.5.5 in admin console.

--> Environment --> Name Space Bindings --> New --> Provide your corba details here.

Example:

1) corba URL : corbaloc:iiop:ABCDE012:14888/NameService

2) provide Lookup name. using this, u will get a RootContext by lookup like JNDI.

Code Example :

InitialContext context = new InitialContext();

org.omg.CosNaming.NamingContext rootContext=(NamingContext)context.lookup("testing");

using the rootContext, you can fetch the server stubs and preform the operation required.



来源:https://stackoverflow.com/questions/28939289/corba-nameservice-configuration-in-websphere-8-5-5

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!