Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

RMI question

Posted on 2001-06-16
2
Medium Priority
?
212 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
  • 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 160 total points
ID: 6199617
The java tutorial (http://java.sun.com/docs/books/tutorial/index.html) has
also good examples.
0

Featured Post

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

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

Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
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:
Suggested Courses

783 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