dellfy
Jun 5th, 2007, 10:18 AM
Hi
Is there a way to set the timeout on an ldapTemplate lookup?
I'm using an lookup because I know the exact DN, I know it is possible with an ldapTemplate search but I suspect a lookup is faster and I don't want to have to switch to a search for the sake of being able to set a timeout?
Also does it make sence to have a timeout on a ldap lookup? If not how long will the app wait on a result and is it not bad practice to setup queries without being able to set a time out on them?
Regards
D
Is there a way to set the timeout on an ldapTemplate lookup?
I'm using an lookup because I know the exact DN, I know it is possible with an ldapTemplate search but I suspect a lookup is faster and I don't want to have to switch to a search for the sake of being able to set a timeout?
Also does it make sence to have a timeout on a ldap lookup? If not how long will the app wait on a result and is it not bad practice to setup queries without being able to set a time out on them?
Regards
D