Solved

RMI question

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

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

I had a project requirement for a displaying a user workbench .This workbench would consist multiple data grids .In each grid the user will be able to see a large number of data. These data grids should allow the user to 1. Sort 2. Export the …
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…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

762 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now