Link to home
Start Free TrialLog in
Avatar of dannynt
dannynt

asked on

RMI question

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.
Avatar of superschlonz
superschlonz

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.
ASKER CERTIFIED SOLUTION
Avatar of superschlonz
superschlonz

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial