Skip to main content

remotePubish to a group

6 replies [Last post]
cono82
Offline
Joined: 2007-02-24
Points: 0

Hi everyone,

I have a question:
"Can I publish an advertisement to an entire peer group with the remotePublish?"
And if not
"How can I publish an advertisemento tu an entire peerGroup?"

Thanks in advance.
Cono

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
cono82
Offline
Joined: 2007-02-24
Points: 0

Thanks for help.....

hamada
Offline
Joined: 2003-06-12
Points: 0

remotePublish defines a ttl of 1, therefore expect the scope to be limited to local subnet (if multicast is enabled) and the rendezvous if any.

cono82
Offline
Joined: 2007-02-24
Points: 0

ok, thanks a lot for this suggestion.....
Now I understand why the other Peer can't find my advertisement, but the problem is that I want propagate the advertisement to an entire peerGroup, and I don't how.

Does Anyone know a solution for my problem?

Thanks

hamada
Offline
Joined: 2003-06-12
Points: 0

remotePublish scope is limited to avoid network flooding. if the intention is to propagate information to a limited set of nodes, then the propagated pipe is more appropriate.

cono82
Offline
Joined: 2007-02-24
Points: 0

Thanks Hamada,

I want send an advertisement to all the peer in a peerGroup (that I joined before), but I'm also member of other peerGroup.

I try with remotePublish(null, advertisement) but onother peer that join the same peerGroup, don't receive nothing.

It's right this way?

Thanks

hamada
Offline
Joined: 2003-06-12
Points: 0

The intent of remote publish is to make available an advertisement without requiring the presence of originator on the network. It is not intended to flood the network (it won't scale).

If this mechanism is used as a form of presence, you are better off using alternate methods. A propagated pipe would be a good start. you might want to take a look at http://shoal.dev.java.net use of pipes, creation of Identifiers, and node discovery.