We are using CA Directory 12.0.18 in for application along with custom java code to connect LDAP and fetch the users data using WebService. when we request data using webservice after some pause for first request we get below error
2017-12-07 20:15:47,787 INFO [com.xxxx.***.xxxx.AD_Accessor] getUsernameAndEmailIdStatus() - Exception while trying to retrieve DN for User with email@example.com From AD
javax.naming.ServiceUnavailableException: xyz.com.au:389; socket closed; remaining name 'ou=Users,ou=yyyy,dc=web,dc=***,dc=com,dc=au'
ll other requests followed by this request get response without any error, it looks like this happens when there has been no request for some time, so the connection which was created by code in LDAP pool goes into ideal state and get closed (that’s why “socket closed” message in the logs). So when a new request is made code tries to use the connection get the error.
So wanted to know what parameter in CA Directory server (or in my code) I can modify to stop this error.