Package org.hibernate.util
Class NamingHelper
java.lang.Object
org.hibernate.util.NamingHelper
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidBind val to name in ctx, and make sure that all intermediate contexts exist.static InitialContextgetInitialContext(Properties props) static PropertiesgetJndiProperties(Properties properties) Transform JNDI properties passed in the form hibernate.jndi.* to the format accepted by InitialContext by triming the leading "hibernate.jndi".
-
Method Details
-
getInitialContext
- Throws:
NamingException
-
bind
Bind val to name in ctx, and make sure that all intermediate contexts exist.- Parameters:
ctx- the root contextname- the name as a stringval- the object to be bound- Throws:
NamingException
-
getJndiProperties
Transform JNDI properties passed in the form hibernate.jndi.* to the format accepted by InitialContext by triming the leading "hibernate.jndi".
-