Frank Sommers
Posts: 2642
Nickname: fsommers
Registered: Jan, 2002
|
|
Re: please need help on multiple clients
|
Posted: Apr 19, 2002 11:30 PM
|
|
I don't think your message is specific to Jini -- that question is generally applicable to client-server systems. But there is a solution that's fairly unique to Jini.
If you mean a client sending a message to the server, and then the server distributing that message, then one way is to use JavaSpaces as your "server." A client would write into the space a message entry, and other clients would issue blocking read operations against those messages. So, whenever a new message arrives, the other clients will just pick up that message and process it. It's really easy to do that with JavaSpaces. If you need reliable message delivery, you can use Jini transactions in conjunction with JavaSpaces.
Of course, there are many other ways of doing what you want -- this just the (or a) Jini Way (tm).
> Hi! all.
> i can communicate from server to single client
> using jini,please tell me how to modify
> server/client code so that it has to communicate
> with multiple clients, sending some messages,between
> the server and multiple clients.
> thanks in advance
> gvk
|
|