开发者

ORBInitialHost parameter

开发者 https://www.devze.com 2023-01-28 05:52 出处:网络
Assume I have a java server which uses corba. When I start it with command java server -ORBInitialHost localhost -ORBInitialPort 1111

Assume I have a java server which uses corba. When I start it with command

java server -ORBInitialHost localhost -ORBInitialPort 1111

I pass parametres -ORBInitialHost localhost -ORBInitialPort 1111. Will I have 2 elements of array String []开发者_StackOverflow社区 args (

args[0] -ORBInitialHost localhost,
args[1] -ORBInitialPort 1111

) or

4 elements(

args[0] -ORBInitialHost, 
args[1] localhost, 
args[2] -ORBInitialPort, 
args[3] 1111

)?

Thanks in advance!


It would be four parameters, as you put in the second code. The ORB code is written so that it takes into account the next array element as the parameter of the option.

0

精彩评论

暂无评论...
验证码 换一张
取 消