On Fri, Sep 9, 2011 at 4:01 PM, Yuji Shinozaki <span dir="ltr"><<a href="mailto:ys2n@virginia.edu">ys2n@virginia.edu</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I am spinning off a different thread about the configuration of the vt-ldap implementation of the ldap dataconnector to keep the noise down on the original thread.<br>
<br>
Daniel,<br>
<br>
How are the exceptions that are caught by the vt-ldap library specified in the configs? The vt-ldap docs (<a href="http://code.google.com/p/vt-middleware/wiki/vtldapProperties#Properties" target="_blank">http://code.google.com/p/vt-middleware/wiki/vtldapProperties#Properties</a>) show them as being specified like so:<br>
<br>
{CommunicationException, ServiceUnavailableException}<br>
<br>
So, I am assuming that it assumes javax.naming.* classes. Can you specify exception classes in other packages?</blockquote><div><br></div><div>You can specify any NamingException.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Also, is it simply an instanceof operation and can you specify and match on superclasses or interfaces?<br></blockquote><div><br></div><div>NamingException.isInstance(..)</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
Admittedly, these last two questions are academic, because I just need to retry on javax.naming.TimeLimitExceededException, so I am presuming I just need to specify it thusly:<br>
<br>
<LDAPProperty name="edu.vt.middleware.ldap.operationRetryExceptions" value="{CommunicationException, ServiceUnavailableException, TimeLimitExceededException}" /><br><br></blockquote><div><br></div>
<div> <LDAPProperty name="edu.vt.middleware.ldap.operationRetryExceptions" value="javax.naming.CommunicationException,javax.naming.ServiceUnavailableException,javax.naming.TimeLimitExceededException" /></div>
<div><br></div><div>Are you sure this is what you want? An operation retry closes and reopens the connection, then presumably you'd get the same TimeLimitExceededException again. Note that LimitExceededException is ignored by the search result handler. So even if it occurs, you'll still get any results that were retrieved before the exception.</div>
<div><br></div><div>--Daniel Fisher</div><div><br></div></div>