public final class NamingHelper
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)
Bind val to name in ctx, and make sure that all intermediate contexts exist.
|
static javax.naming.InitialContext |
getInitialContext(java.util.Properties props) |
static java.util.Properties |
getJndiProperties(java.util.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 javax.naming.InitialContext getInitialContext(java.util.Properties props) throws javax.naming.NamingException
javax.naming.NamingException
public 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
public static java.util.Properties getJndiProperties(java.util.Properties properties)
Copyright © 2013. All Rights Reserved.