0

I'm using UnboundID LDAP SDK for Java to query Active Directory using LDAP.

I'm creating the connection every time now so I'd like to change my code to use connections pool. I've found some examples how to create a connections pool, how to get and return the connection (link). I plan to do so using spring components on Mule ESB server but I'm worried about opened connections after my server or AD server restarts or communication problems.

How can I:

  1. prevent my code from opened connections after my server restart
  2. reconnect, recreate connections after AD communications problems
dj_universe
  • 372
  • 5
  • 17

0 Answers0