Multicast problem

in Help Center
How do I send a message to several servers at the same time. I used multicast sample, however only one server receives the message.
And another question is how to make a server to send a response as a server generated message to the client.
Thank you.
And another question is how to make a server to send a response as a server generated message to the client.
Thank you.
0
Comments
So only the first "lookup" request is UDP multicast, other requests are TCP unicast.
You can run client and servers with --Ice.Trace.Protocol=1 to trace protocol messages.
Thank you for your reply. Here is another question: does ice provide any ways to make a true multicast working meaning a client sends a message that would be received by multiple servers, and then make servers to reply back?
In the demo the client sends a multicast message that is received by all the servers, and all the servers reply back to the client (as they want to reply just to the client that contacted then, the reply is an unicast message).
We are attempting to send a text from the client to all the servers.
We implemented another method sayHelloName(String) in HelloI class.
Then we execute that method in Client.java like this:
hello.sayHelloName("Client says hello to the Server");
Only one server receives it. We would like all servers to get it.
Can you advise how to accomplish that?
As the next step we would like all the servers to send another string back to the client in response.
from config.sever
HelloI servant is added to Hello object adapter, this adapter has just TCP endpoints.
DiscoverI servant is added to Discover object adapter, this use a mulicast endpoint.
You can only send multicast request to servants in the multicast adapter (Discover adapter). So add your method to DiscoverI and call it using the DiscoverPrx.
FYI, I added my own demo example for a basic multicast pub/sub :Multicast demo example
Pleasure to share