如何在java中包含“启动orbd -ORBInitialPort 1050”?

时间:2022-11-23 12:16:44

I am trying to learn how to use CORBA by example in this web site

我试图在这个网站上学习如何使用CORBA

http://www.cs.mun.ca/java-api-1.5/guide/rmi-iiop/rmiiiopexample.html

So in this example usually I should run command line to run orb

所以在这个例子中我通常应该运行命令行来运行orb

start orbd -ORBInitialPort 1050

启动orbd -ORBInitialPort 1050

Is there anyway to include this in java program?

反正有没有在java程序中包含这个?

1 个解决方案

#1


You could use Runtime.exec(...), see the docs, but notice that you are starting a Windows Service there, once you start it, it will stay active until you stop it explicitly.

您可以使用Runtime.exec(...),查看文档,但请注意您在那里启动Windows服务,一旦启动它,它将保持活动状态,直到您明确停止它。

Doesn't this ORB have an API for Java integration? That page talks about Java RMI+ IIOP(Corba) integration, if you can embed the Corba ORB in your application it would be way better than simply launching the server manually.

这个ORB是不是有一个用于Java集成的API?该页面讨论了Java RMI + IIOP(Corba)集成,如果您可以在您的应用程序中嵌入Corba ORB,那么它将比简单地手动启动服务器更好。

If i can recommend another ORB, you should look into JacORB.

如果我可以推荐另一个ORB,你应该看看JacORB。

#1


You could use Runtime.exec(...), see the docs, but notice that you are starting a Windows Service there, once you start it, it will stay active until you stop it explicitly.

您可以使用Runtime.exec(...),查看文档,但请注意您在那里启动Windows服务,一旦启动它,它将保持活动状态,直到您明确停止它。

Doesn't this ORB have an API for Java integration? That page talks about Java RMI+ IIOP(Corba) integration, if you can embed the Corba ORB in your application it would be way better than simply launching the server manually.

这个ORB是不是有一个用于Java集成的API?该页面讨论了Java RMI + IIOP(Corba)集成,如果您可以在您的应用程序中嵌入Corba ORB,那么它将比简单地手动启动服务器更好。

If i can recommend another ORB, you should look into JacORB.

如果我可以推荐另一个ORB,你应该看看JacORB。