You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@juddi.apache.org by Emilda Sindhu <em...@ihpc.a-star.edu.sg> on 2005/04/14 10:49:42 UTC

findBusines method.

I am using findBusiness method in AbstractRegistry class to list all the
business in my jUDDI registry. The problem I am facing here is the nameVector
argument that I need to pass. It limits to a max of 5 entries in the vector.
So I cannot list all my business. With the code given below, I can only list
business starting with the following letters.

                        Vector names = new Vector();
                        names.add(new Name("a"));
                        names.add(new Name("B"));
                        names.add(new Name("e"));
                        names.add(new Name("S"));
                        names.add(new Name("T"));

Is this not the right way to do. Is there any other way to retrieve all the
business.

Thanks,
Emilda.


Re: findBusines method.

Posted by Michael Tynan <mi...@bml.uk.com>.
Hi,

If you need to get all the businesses within the registry you can use
the wildcard character '%' 

    Vector names = new Vector();
    names.add(new Name("%"));
    BusinessList bL = proxy.find_business(names, null, null null, null,
null, 99999);

The above example will get all businesses within the registry. 

Hope this is of some help,
Michael.

On Thu, 2005-04-14 at 16:49 +0800, Emilda Sindhu wrote:

> I am using findBusiness method in AbstractRegistry class to list all the
> business in my jUDDI registry. The problem I am facing here is the nameVector
> argument that I need to pass. It limits to a max of 5 entries in the vector.
> So I cannot list all my business. With the code given below, I can only list
> business starting with the following letters.
> 
>                         Vector names = new Vector();
>                         names.add(new Name("a"));
>                         names.add(new Name("B"));
>                         names.add(new Name("e"));
>                         names.add(new Name("S"));
>                         names.add(new Name("T"));
> 
> Is this not the right way to do. Is there any other way to retrieve all the
> business.
> 
> Thanks,
> Emilda.
> 
> 

-- 
Michael Tynan <mi...@bml.uk.com>