Class JndiNameLookupHelper


  • public class JndiNameLookupHelper
    extends Object
    • Constructor Detail

      • JndiNameLookupHelper

        public JndiNameLookupHelper()
        Creates a new instance of JndiMBeanHelper
    • Method Detail

      • getJndiEntriesByContextPath

        public ArrayList<String> getJndiEntriesByContextPath​(String contextPath)
                                                      throws NamingException
        Gets the jndi entries from the application server's naming service given a particular context/subcontext.
        Parameters:
        contextPath - The naming context or subcontext to query.
        Returns:
        An ArrayList of NameClassPair objects.
        Throws:
        NamingException - if an error occurs when connection with the naming service is established or retrieval fails.