You should switch over to the new mailing list:

[email protected]

I've been telling you to use that solution for the last week.  Would have
saved you a week's worth of work anyway.

-JF

-----Original Message-----
From: chainerlt [mailto:[email protected]] 
Sent: Friday, February 25, 2011 6:01 AM
To: [email protected]
Subject: Re: juddiv3 (3.0.4) finding all business/services


Solution:
So the main trick was to set findqualifier "APPROXIMATE_MATCH" or if you
would look into its class:


> package org.apache.juddi.query.util;
> 
> import org.uddi.api_v3.FindQualifiers;
> 
> public class FindQualifiers
> {
>     ...
>     public static final String APPROXIMATE_MATCH = "approximateMatch";
>     ...
> 
And now only adding this approximate match qualifier + name "%" it works.


>         org.uddi.api_v3.Name name = new org.uddi.api_v3.Name();
>         name.setValue("%");
>         org.uddi.api_v3.FindQualifiers qualifiers = new
> org.uddi.api_v3.FindQualifiers();
>        
>
qualifiers.getFindQualifier().add(org.apache.juddi.query.util.FindQualifiers
.APPROXIMATE_MATCH);
> 
>         // find business
>         org.uddi.api_v3.FindBusiness findBusiness = new
> org.uddi.api_v3.FindBusiness();
>         findBusiness.getName().add(name);
>         findBusiness.setFindQualifiers(qualifiers);
> 
>         BusinessList lst; = inquiry.findBusiness(findBusiness);
> 
Note:
you can find this class in "[b]juddi-core-3.0.4.jar[/b]". Or you can just
write String manualy:


> ...
> qualifiers.getFindQualifier().add("approximateMatch");
> ...
> 
Maybe this will help someone, since I had to find out this by myself and it
took few days :/
Good luck!
-- 
View this message in context:
http://old.nabble.com/juddiv3-%283.0.4%29-finding-all-business-services-tp30
975809p31012395.html
Sent from the jUDDI - User mailing list archive at Nabble.com.

Reply via email to