Originally posted by Marilyn deQueiroz:
It's interesting that although I'm starting the server with
start java -classpath %HOME% -Djava.rmi.server.codebase="http://localhost:9999/" mfe.servers.WorkhorseDriver
my output is
rmi://localhost:1099/Processor->Workhorse
rather than
rmi://localhost:9999/Processor->Workhorse
Make visible what, without you, might perhaps never have been seen.
- Robert Bresson
Originally posted by Marilyn deQueiroz:
Well, it seems that the ClientList NEVER notices that the server has gone down.
So, how do we tell the rmiregistry that the server is no longer available?
Originally posted by Michael Ernest:
... not from the web server that makes the stub available.
...I didn't by chance happen to say the result should be "9999"...did I?
JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Knowledge Xchange. SCJ2P.
Originally posted by Abdul Salam:
QUOTING YOUR WORDS.
"We would rather use a lookup service, or name-for-service translator, and relax our need to know these things at compile-time. Furthermore, a well-named lookup might do a better job of suggesting a service's uses. When we want a service, the argument goes, we usually know what capability we're looking for (like Processor), but we don't always know the exact implementation name it goes by (Workhorse)."
It's about implementing the service name as a public static final String variable(say SERVICE_NAME)inside the remote interface(service).As RMI requires the remote interface present on client side
lookup can rely on service.SERVICE_NAME
Make visible what, without you, might perhaps never have been seen.
- Robert Bresson
Make visible what, without you, might perhaps never have been seen.
- Robert Bresson
Originally posted by Michael Ernest:
That means you need an HTTP server, for our purposes a very light one. So here you go! Don't say I never gave ya nuthin'. This is the same class server offered in Sun's RMI tutorial by Ann Wolrath and Ken Arnold, by the way.
Fly by Night Consultants<br /> <blockquote><font size="1" face="Verdana, Arial">quote:</font><hr><i>I climbed on the back of a giant albatross<br />which flew through a crack in the cloud<br />to a place where happiness reigned...<br />all year 'round<br />the music played ever so loudly!</i><p><a href="http://thomasfly.com/songs/Traffic/Hole_in_my_Shoe_qt.htm" target="_blank" rel="nofollow">Hole in My Shoe</a><hr></blockquote>
Make visible what, without you, might perhaps never have been seen.
- Robert Bresson
Originally posted by Michael Ernest:
Seriously, I never thought the stuff I wrote here was all that good. I'd love to say I'm pleased so many people found it useful, but I don't understand what you're all getting out of it.
Normal is in the eye of the beholder
Make visible what, without you, might perhaps never have been seen.
- Robert Bresson
<i>Dare to dream - everything that exists today,was once a figment of someone's imagination, nobody says tomorrow can't be a figment of your today.</i>
snakes are really good at eating slugs. And you wouldn't think it, but so are tiny ads:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
|