| | |
| | | LdapName jndiName = new LdapName("cn=monitor"); |
| | | |
| | | InitialLdapContext ctx = null; |
| | | NamingEnumeration<SearchResult> monitorEntries = null; |
| | | try |
| | | { |
| | | ServerLoader loader = |
| | | getServerLoader(replicationServer.getAdsProperties()); |
| | | ctx = loader.createContext(); |
| | | NamingEnumeration<SearchResult> monitorEntries = |
| | | ctx.search(jndiName, filter, ctls); |
| | | monitorEntries = ctx.search(jndiName, filter, ctls); |
| | | |
| | | while(monitorEntries.hasMore()) |
| | | { |
| | |
| | | } |
| | | finally |
| | | { |
| | | if (monitorEntries != null) |
| | | { |
| | | monitorEntries.close(); |
| | | } |
| | | if (ctx != null) |
| | | { |
| | | ctx.close(); |