Class JndiHelper


  • @Deprecated
    public final class JndiHelper
    extends Object
    Deprecated.
    As JNDI access should get routed through JndiService
    Helper for dealing with JNDI.
    • Method Detail

      • extractJndiProperties

        public static Properties extractJndiProperties​(Map configurationValues)
        Deprecated.
        Given a hodgepodge of properties, extract out the ones relevant for JNDI interaction.
        Parameters:
        configurationValues - The map of config values
        Returns:
        The extracted JNDI specific properties.
      • bind

        public static void bind​(Context ctx,
                                String name,
                                Object val)
                         throws NamingException
        Deprecated.
        Bind val to name in ctx, and make sure that all intermediate contexts exist.
        Parameters:
        ctx - the root context
        name - the name as a string
        val - the object to be bound
        Throws:
        NamingException - Indicates a problem performing the bind.