Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


CORBA in Java

Posted on 1999-06-22
Medium Priority
Last Modified: 2012-08-13
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?
Question by:jonalee
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Accepted Solution

andreZippy earned 300 total points
ID: 1244347
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.  


Author Comment

ID: 1244348
Also, will you tell me except for -ORBInitialPort and -ORBInitialHost, is there any other parameter?


Featured Post

Build and deliver software with DevOps

A digital transformation requires faster time to market, shorter software development lifecycles, and the ability to adapt rapidly to changing customer demands. DevOps provides the solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
In this post we will learn different types of Android Layout and some basics of an Android App.
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
Suggested Courses

722 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question