Websphere 8.5.5中的Corba NameService配置 [英] Corba NameService configuration in Websphere 8.5.5

查看:160
本文介绍了Websphere 8.5.5中的Corba NameService配置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

作为我的应用程序需求的一部分,我必须在Websphere 8.5.5中配置一个名为"ORBInitRef.NameService=corbaloc:iiop:ABCDE012:14888/NameService"的属性.之前,我曾将Jboss用于我的应用程序部署,但现在必须使用WAS.在WAS中,我应该在哪里在管理控制台中配置此属性?有什么方法可以通过WAS根文件夹中的orb.properties文件来完成此操作.请让我知道要接近吗?

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??

推荐答案

请按照以下步骤在管理控制台中的WAS 8.5.5中配置Corba Name服务.

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

->环境->命名空间绑定->新建->在此提供您的corba详细信息.

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

示例:

1)corba网址:corbaloc:iiop:ABCDE012:14888/NameService

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

2)提供查阅名称.使用此方法,您将通过类似于JNDI的查找获得RootContext.

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

代码示例:

InitialContext context = new InitialContext();

InitialContext context = new InitialContext();

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

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

使用rootContext,您可以获取服务器存根并执行所需的操作.

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

这篇关于Websphere 8.5.5中的Corba NameService配置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆