JndiService@Deprecated
public final class JndiHelper
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static void |
bind(javax.naming.Context ctx,
java.lang.String name,
java.lang.Object val)
Deprecated.
Bind val to name in ctx, and make sure that all intermediate contexts exist.
|
static java.util.Properties |
extractJndiProperties(java.util.Map configurationValues)
Deprecated.
Given a hodgepodge of properties, extract out the ones relevant for JNDI interaction.
|
static javax.naming.InitialContext |
getInitialContext(java.util.Properties props)
Deprecated.
|
public static java.util.Properties extractJndiProperties(java.util.Map configurationValues)
configurationValues - The map of config valuespublic static javax.naming.InitialContext getInitialContext(java.util.Properties props)
throws javax.naming.NamingException
javax.naming.NamingExceptionpublic static void bind(javax.naming.Context ctx,
java.lang.String name,
java.lang.Object val)
throws javax.naming.NamingException
ctx - the root contextname - the name as a stringval - the object to be boundjavax.naming.NamingException - Indicates a problem performing the bind.Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.