Creating Custom Advertisement and finding with DiscoveryService
This is a strange one so if any of you have any tips it will be much appreciated.
I have created a custom advertisement, registered it, and published it locally.
When I perform a local discovery such as the following I can see the advert:
(i) Enumeration advertisementEnum = discoveryService.getLocalAdvertisements( DiscoveryService.ADV, null, null );
However if I look for the advert more selectively I get nothing:
(ii) Enumeration advertisementEnum = discoveryService.getLocalAdvertisements( DiscoveryService.ADV, "UniqueId", "john" );
The advert looks like the following so it is surprising I do not find it with the selective search (ii):
I thought that may be it is something to do with a JXTA bug with the indexing of a custom advertisement. I am using jxta 2.5.
Are any of you aware of bugs with the discovery of Custom Advertisements in jxta 2.5 ?