org.hibernate.util
Class NamingHelper

java.lang.Object
  extended by org.hibernate.util.NamingHelper

public final class NamingHelper
extends java.lang.Object


Method Summary
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".
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInitialContext

public static javax.naming.InitialContext getInitialContext(java.util.Properties props)
                                                     throws javax.naming.NamingException
Throws:
javax.naming.NamingException

bind

public static void bind(javax.naming.Context ctx,
                        java.lang.String name,
                        java.lang.Object val)
                 throws javax.naming.NamingException
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:
javax.naming.NamingException

getJndiProperties

public 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".



Copyright © 2008 Hibernate.org. All Rights Reserved.