Solved

RMI question

Posted on 2001-06-16
2
209 Views
Last Modified: 2013-11-24
Hi all
I wrote small RMI server application (product serevr , with one mwthod in it called getDescription from the Core java 2 book of sun).
I wrote a client which perform Naming.lookUp("..")
this line take so much time (about one minutes) can someone please tell me why.

can someone please tell me what is the policy file for (in stand alone aplication and in applet).

where can I learn it with example from the beging.
    Thanks.
0
Comment
Question by:dannynt
[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
  • 2
2 Comments
 
LVL 3

Expert Comment

by:superschlonz
ID: 6199611
If a networking application needs so much time for one method call it's
in most of the cases a DNS lookup problem.

As parameter of the lookup call you should use something like
"//hostnameOrIP/RMIApplicationName"

And on the server the RMIRegistry must run so the server can be
registered there. The lookup call asks the RMI registry of the specified
host if there is a server with the given name.
0
 
LVL 3

Accepted Solution

by:
superschlonz earned 40 total points
ID: 6199617
The java tutorial (http://java.sun.com/docs/books/tutorial/index.html) has
also good examples.
0

Featured Post

RHCE - Red Hat OpenStack Prep Course

This course will provide in-depth training so that students who currently hold the EX200 & EX210 certifications can sit for the EX310 exam. Students will learn how to deploy & manage a full Red Hat environment with Ceph block storage, & integrate Ceph into other OpenStack service

Question has a verified solution.

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

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
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:
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 …

617 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