public Object excecute(final String username, final String password) { try { ctx = ldapConnector.createContext(username, password); } catch (final NamingException ex) { log.error("While trying to connect LDAP initally: " + ex.getMessage(), ex); throw new RuntimeException(ex); } return internalExcecute(); }
return call(); } catch (final NameNotFoundException e) {
public Object excecute() { ctx = ldapConnector.createContext(); if (ctx != null) { ++openConnections; } return internalExcecute(); }