/** * Return the list of Security Ldap Factories in the current server. * @return The list of Security Ldap Factories * @throws MalformedObjectNameException any. */ public static ArrayList getSecurityLdapFactories(final String domainName, final String serverName) throws MalformedObjectNameException { String sName; ArrayList<String> al = new ArrayList<String>(); Iterator itNames = getListMBeanName(JonasObjectName.allSecurityLdapFactories(domainName), serverName).iterator(); while (itNames.hasNext()) { sName = extractValueMbeanName(",name", itNames.next().toString()); if (sName != null) { al.add(sName); } } Collections.sort(al); return al; }