Solved

Meaning of URL in RMI

Posted on 1997-05-05
1
209 Views
Last Modified: 2010-04-16
How do you set up an URL from the server and client side when using RMI.
Server: Name.redind(//myhost/???/name);, what is important for in the URL for the client to recognize the remote object. My program work on the same machine, but I will setup for running from different computer.

0
Comment
Question by:pjroy
[X]
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
1 Comment
 
LVL 6

Accepted Solution

by:
jpk041897 earned 0 total points
ID: 1220143
A URL as used by Java, is a Class that is initialized to an address.

See the Java Docs for the diferent constructor options, but in general they fall into the classification of:

String address = "127.0.0.1/Mydoc.html);
URL myURL;

try {
 myURL = new URL (address);
}
catch (MalformedURLException e){
 // whatever
}


So whenever you find a constructor that requires a URL, as in

Server: Name.redind(URL);

You replace the URL param  for the URL class instance you created.
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
hibernate example using maven 12 105
printf performancy 11 98
Selenium docs api java index 3 94
Eclipse Help Java EE 5,6,7 Documentation, why not Java EE 8 8 67
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
The viewer will learn how to implement Singleton Design Pattern in Java.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Suggested Courses

739 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