Check that resource limits are disabled for your authenticating user (or globally), and/or your ldap library handles connection timeout, if the LDAP server drops your connection.
On 02/11/2009, at 7:09 PM, Vinay Jain jainvinayk@gmail.com wrote:
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