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.
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.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
in most of the cases a DNS lookup problem.
As parameter of the lookup call you should use something like
"//hostnameOrIP/RMIApplica
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.