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

LDap Search query returning null value



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