CORBA:Java的servertool不允许我注册服务器类 [英] CORBA: Java's servertool does not allow me to register a server class
问题描述
已被拉入CORBA领域......
Have been pulled down into the realm of CORBA...
我正在尝试快速学习(如果不是主...)CORBA与Java映射一起。我发现了一些旧的教程:
I am trying to quickly learn (if not master...) CORBA along side its Java mappings. I have come upon some old tutorials:
我使用上面第一个链接(Java IDL ...)创建了一个项目,并在运行以下命令后运行了HelloServer和HelloClient:
I have created a project with the source from the first link above (Java IDL...) and have run both HelloServer and HelloClient after running the following command:
start orbd -ORBInitialPort 1050
毫不奇怪,一切正常:)
Not surprisingly, everything works :)
然后我将作为持久服务注册HelloServer并惨遭失败!
我运行以下命令(从bin文件夹启动(包含.class文件的那些)):
I run the following command (launched from the "bin" folder (that which contains the .class files)):
%JAVA_HOME%\bin\servertool -ORBInitialPort 1050
然后我跑:
servertool > register -server HelloServer -classpath .
并且流程只是挂起......
and the process simply hangs...
我可能做错了什么
推荐答案
我不确定为什么事情已经开始起作用了......
Well I am not sure why things have started to work but...
从bin文件夹(包含.class文件的文件夹)开始运行:
From the "bin" folder (that which contains the .class files) I have run:
%JAVA_HOME%\bin\orbd -ORBInitialPort 1050
然后打开一个新cmd shell(来自同一位置) - 因为前一个运行orbd并且已经运行:
Then opened a new cmd shell (from the same location) - since the previous one is running the orbd and have run:
%JAVA_HOME%\bin\servertool -ORBInitialPort 1050
两者:
register -server HelloServer -classpath . -applicationName HelloServerApName
和
register -server HelloServer -classpath .
工作
work
这篇关于CORBA:Java的servertool不允许我注册服务器类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!