RMI- start client before server

V

vnssoftware

Hi-
In RMI, can I have a Seperate Thread to check if the
RMIRegistry+Server are up and then start using Server. Basically can I
do this:
Start Client
And then Start RMIRegistry/Server

Or do I have to start RMIRegistry/Server before the client?
 
S

Steve W. Jackson

:Hi-
:In RMI, can I have a Seperate Thread to check if the
:RMIRegistry+Server are up and then start using Server. Basically can I
:do this:
:Start Client
:And then Start RMIRegistry/Server
:
:Or do I have to start RMIRegistry/Server before the client?

The client can do almost anything it wants irrespective of whether the
RMI Registry is available or the specified server (aka, any registered
object) is available. The exceptions, of course, are that it cannot
communicate with the registry (for lookups) or do things dependent on
that lookup, like getting a reference to a remote object and calling
methods on it.

So the RMI Registry and all "server" objects registered there can come
and go as you please, if there's no other dependency requirement that
would be broken by this.

= Steve =
 

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
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top