Skip to main content

How To Remove an Advertisment?

3 replies [Last post]
deniswsrosa
Offline
Joined: 2006-05-05

Hi guys!

I need to publish a service with the same name that i had published before, but the other peers stored the old advertisement of this service, is there a way of remove the old advertisement before publish this new service?

Thank you!

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
dc5
Offline
Joined: 2008-08-31

Hey,

A solution to your answer can be found here:

http://forums.java.net/jive/thread.jspa?messageID=262712&#262712

Also have a look at the flush advertisement methods under discovery service in the JXTA 2.5 api.

Hope this helps,

DC5

deniswsrosa
Offline
Joined: 2006-05-05

Than k you for ztoyr reply dc5!

But the problem is clear the advertsiment of all peers. I think thats is not possible, however, i guess that is possible publish a service with the same name just using the same pipeId.]

Bye!

nobal
Offline
Joined: 2009-02-23

Hi deniswsrosa,

I encounter the same problem.. How did you solve it ?

Here is brief description of the scenario:
A peer publishes a service with name say S. When this peer leaves the network and again joins, it publishes a service with the same name S. Problem is that the rest peers will still get the old advertisement. How to make sure that the rest peer gets the new service advertisement for the service with name S instead of using the old one?

Thanks in advance.
Nobal