Subject: throwing LDAPReferralException - I-D java-api-11

From: "Steve Sonntag" <[email-masked]>
Date: Fri, 08 Sep 2000 12:53:42 -0600

When performing a search it is possible for the server
to return multiple search continuation references, each
with a different search base.

The I-D states that when retrieving results from a
search using LDAPSearchResults.next() that all the
results are returned to the application after which
on the last call to next() an LDAPReferralException
is thrown.

My question is: how does the application get the
rest of the continuation references, as a
ReferralException object encapsulates the
reference list from one search continuation reply.

If the application did another next() call would
another LDAPReferralException be thrown?
How would the application know when to stop?
Does it check the enumeration count to see if
more items exist in the enumeration, and thus
continue to call next() and get an LDAPReferralException
each time.  As an alternative, the application
could switch to calling nextElement() to get the
rest of the search references as LDAPReferralException
objects.  How do you envision the application doing this?

The I-D should make it clear that the application
can get more than one search continuation
reference, and indicate a mechanism to deal
with the situation.

-Steve