开发者

ORBInitialHost parameter

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜