类 JndiHelper


  • @Deprecated
    public final class JndiHelper
    extends Object
    已过时。
    As JNDI access should get routed through JndiService
    Helper for dealing with JNDI.
    • 方法详细资料

      • extractJndiProperties

        public static Properties extractJndiProperties​(Map configurationValues)
        已过时。
        Given a hodgepodge of properties, extract out the ones relevant for JNDI interaction.
        参数:
        configurationValues - The map of config values
        返回:
        The extracted JNDI specific properties.
      • bind

        public static void bind​(Context ctx,
                                String name,
                                Object val)
                         throws NamingException
        已过时。
        Bind val to name in ctx, and make sure that all intermediate contexts exist.
        参数:
        ctx - the root context
        name - the name as a string
        val - the object to be bound
        抛出:
        NamingException - Indicates a problem performing the bind.