[Date Prev][Date Next] [Chronological] [Thread] [Top]

LDap Search query returning null value


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

   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(
         new SubscriberAttributeMapper() );
      if(list!=null && !list.isEmpty()){
      logger.info("The subscriber found is "+subscriber);
      return subscriber;

Vinay Jain