RMI: what do i get when i don't have server on?

W

wahlau.eh

hallo everyone,

say if i have the example given in
http://www.ccs.neu.edu/home/kenb/com3337/rmi_tut.html done, and it
worked. when i have the registry on, but not the server on, i can
still create an object that is an instance of the remote stub (since
the registry is on) but i will get error when i try to use the method
in the remote object (in this case say()).

my question is, what should i be expecting when i request for an
unavailable object/method from an available stub? i am looking into
this because i want to figure out how to capture the right exceptions
if i was to rewrite a remote method .

hopefully my question is not too confusing, thanks.

regards,
wahlau.eh
 
E

Esmond Pitt

wahlau.eh said:
my question is, what should i be expecting when i request for an
unavailable object/method from an available stub?

java.rmi.NoSuchObjectException
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,773
Messages
2,569,594
Members
45,119
Latest member
IrmaNorcro
Top