The Artima Developer Community
Sponsored Link

Jini Forum
please need help on multiple clients

2 replies on 1 page. Most recent reply: Apr 21, 2002 8:32 PM by gvk

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 2 replies on 1 page
gvk

Posts: 2
Nickname: glav77
Registered: Apr, 2002

please need help on multiple clients Posted: Apr 18, 2002 8:12 PM
Reply to this message Reply
Advertisement
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


Frank Sommers

Posts: 2642
Nickname: fsommers
Registered: Jan, 2002

Re: please need help on multiple clients Posted: Apr 19, 2002 11:30 PM
Reply to this message Reply
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

gvk

Posts: 2
Nickname: glav77
Registered: Apr, 2002

Re: please need help on multiple clients Posted: Apr 21, 2002 8:32 PM
Reply to this message Reply
hi! sommers.
thanks for ur reply.
can i code the communication previously specified between client /server without javaspaces, i wanted to do that in basic jini, that is client registering with server, i can pass messages between one client and server,how do two clients register to the same server in jini, can u please tell me how to do that.
sorry for troubling u.
thanks

Flat View: This topic has 2 replies on 1 page
Topic: Running Jini1.2 how t get rid of the stubs?????????? Previous Topic   Next Topic Topic: JINI: firewall friendly?

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use