[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
LDap Search query returning null value
- To: openldap-technical@openldap.org
- Subject: LDap Search query returning null value
- From: Vinay Jain <jainvinayk@gmail.com>
- Date: Mon, 2 Nov 2009 14:39:22 +0530
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=cywEelifVTdGwGGhGWk4P/xTRLB+4msxN76LhxzHBzE=; b=xmve4pDRgU/vA4lDx+aKinOly+5ziE0/NstZWuYx40h0W5/Rn0mJCXNO3uiWJo9I6n gNHZGka0pmguzxe1yKUCOaYpMN3IPAOCBizECNR9bviswN8RCykeitonJBV5a838haWc QgxsTQpMyGk6mGQXxWItOUazCmEegjNxAz97M=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=aKMMiehZwDa+Z7OlBM/v3JYlYMrfIpg/96AX9ERtTZzjE/SSUERrnvzStTIeOfllqB SdGSJUeEoFr6FRy2fxiZVp1bUx0ogNNWTTdsUV+GfyZRpaA5XeZWB7cVniK8UAs5/gvu +h5g9k4WrOA1e5icGegkkkSGI0ujwQSMwEiNM=
Hi
I m using following piece of code for fetching the subscriber
information from the base of about 85 million.
After deployment it is returning proper response from LDap for some
time. but as hit increases it is returning null value for the same
search. And after redeploying the project it again starts working
fine. Any help in this regards will be appreciated. Thanks in
advance!!
public Subscriber findSubscriberByMdn(String mdn) {
logger.info("Entered method findSubscriberByMdn with mdn "+mdn);
Subscriber subscriber=null;
AndFilter filter = new AndFilter();
filter.and(new EqualsFilter("objectclass", subscriberObjectClass));
filter.and(new EqualsFilter("mdn", mdn));
List list=ldapTemplate.search(
"",
filter.encode(),
new SubscriberAttributeMapper() );
if(list!=null && !list.isEmpty()){
subscriber=(Subscriber)list.get(0);
}
logger.info("The subscriber found is "+subscriber);
return subscriber;
}
Regards
Vinay Jain