public final class NamingHelper extends Object
Modifier and Type | Method and Description |
---|---|
static void |
bind(Context ctx,
String name,
Object val)
Bind val to name in ctx, and make sure that all intermediate contexts exist.
|
static InitialContext |
getInitialContext(Properties props) |
static Properties |
getJndiProperties(Properties properties)
Transform JNDI properties passed in the form hibernate.jndi.* to the
format accepted by InitialContext by triming the leading "hibernate.jndi".
|
public static InitialContext getInitialContext(Properties props) throws NamingException
NamingException
public static void bind(Context ctx, String name, Object val) throws NamingException
ctx
- the root contextname
- the name as a stringval
- the object to be boundNamingException
public static Properties getJndiProperties(Properties properties)
Copyright © 2002-2017 Red Hat Middleware, LLC. All Rights Reserved