• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 281
  • Last Modified:

CORBA in Java

Hello:
I'm creating Java CORBA following the JavaTutorial.
The question is:
The tutorial told me to using the following command to run the program.
tnameserv -ORBInitialPort 1050
java HelloServer -ORBInitialPort 1050
java HelloClient -ORBInitialPort 1050

But the client can only connect the server from the same machine. How can I assign the the machine name. What need to do?
Thanks.
0
jonalee
Asked:
jonalee
1 Solution
 
andreZippyCommented:
If you want your client to run on a different machine, the client has to specify -ORBInitialHost parameter.  java HelloClient -ORBInitialPort -ORBInitialHost ipaddress 1050 .

Basically the -ORBInitialHost tells the client or the server where to look for the NameService.  So you could also say java HelloServer -ORBInitialPort -ORBInitialHost 1050.  This way the server, the client, and the name server can all run on separate physical machines.  

 
0
 
jonaleeAuthor Commented:
Also, will you tell me except for -ORBInitialPort and -ORBInitialHost, is there any other parameter?

0

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now