Re: Looking for a specific group

Mohamed Abdelaziz <[email protected]>
Newsgroups gmane.comp.java.jxta.user
Message-ID <[email protected]>
No worries Wil.  I think the advertisement javadocs should reflect the 
searchable fields.

PeerGroupAdvertisements are indexed and searchable by "Name", "GID", 
and  "Desc", as for RdvAdvertisements the can be found by  "RdvGroupId," 
"RdvPeerId", or "RdvServiceName"  under DiscoveryService.ADV

Mohamed


[email protected] wrote:

>Thanks Mohamed,
>
>/me feels a bit silly now!
>
>Out of interest, while I'm here, if I tried searching for a groupID using either
>the attribute "PeerGroupId" or "RdvGroupId", neither of which worked.
>
>Now searching for a groupID from the names of the returned groups is trivial but
>it would be a bit more efficient to search for a GroupID instead of a name. Is
>that possible?
>
>Thanks
>Wil
>
>Quoting Mohamed Abdelaziz <[email protected]>:
>
>  
>
>>           Wil wrote:
>>
>>	Hi, I have set up a discovery listener in order to find a specific
>>group. I can get it to work by checking all the responses but I
>>thought it was possible to filter responses in the request thus
>>discovery.getRemoteAdvertisements(null,
>>DiscoveryService.GROUP,                    "name", groupName, 10,
>>this);
>>
>>	"Name", groupName, 10, this);
>>
>>	 This does not work for me, can anyone give me a hint? Thanks Wil
>>    
>>
>  
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.