CORBA ORB运行时定义本地IP接口使用 [英] CORBA ORB runtime define local IP interface usage

查看:314
本文介绍了CORBA ORB运行时定义本地IP接口使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个现有的应用程序,它已将CORBA ORB运行时环境设置为客户端。



目前我们没有指定使用任何本地接口(IP /以太网),运行时似乎在我们的本地机器上获得了一些默认接口。使用的机器是Oracle和Solaris操作系统。



这里使用的ORB运行时环境是Java 7 JDK内置ORB。



有什么方法可以明确指出应该通过某些属性使用某个本地IP接口 ORB.init(...)

  -Dcom.sun.CORBA.ORBServerPort = 10023 -Dcom.sun.CORBA.ORBServerHost = 1.2.3.4 

cmdline上的

 属性prop = new Properties(); 
prop.put(com.sun.CORBA.ORBServerPort,10000);
prop.put(com.sun.CORBA.ORBServerHost,11.1.1.11);
ORB orb = ORB.init(args,prop);

如果使用程序化的话。


We have an existing application which has set up a CORBA ORB runtime environment as client.

At the moment we don't specify any local interface (IP/Ethernet) to use and the runtime seems to get some default interface on our local machine. The machine used is Oracle with Solaris operating system.

The ORB runtime environment used here is Java 7 JDK built-in ORB.

Is there any way to explicitly indicate that a certain local IP interface should be used via some property to ORB.init(...)?

解决方案

For Oracle JDKs ORB it is

 -Dcom.sun.CORBA.ORBServerPort=10023 -Dcom.sun.CORBA.ORBServerHost=1.2.3.4 

on cmdline or

    Properties prop = new Properties();
    prop.put("com.sun.CORBA.ORBServerPort", "10000");
    prop.put("com.sun.CORBA.ORBServerHost", "11.1.1.11");
    ORB orb = ORB.init(args, prop);

if used programmatic.

这篇关于CORBA ORB运行时定义本地IP接口使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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