Package org.hibernate.search.util
Class JNDIHelper
java.lang.Object
org.hibernate.search.util.JNDIHelper
Helper class for creating an JNDI
InitialContext.-
Method Summary
Modifier and TypeMethodDescriptionstatic InitialContextgetInitialContext(Properties properties, String prefix) Creates an initial contextstatic PropertiesgetJndiProperties(Properties properties, String prefix)
-
Method Details
-
getInitialContext
public static InitialContext getInitialContext(Properties properties, String prefix) throws NamingException Creates an initial context- Parameters:
properties- Configuration properties to check for JNDI specific propertiesprefix- The prefix used to designate JDNI properties. If a property frompropertycontains a property which matches the prefix, the prefix gets removed and the property passed to the initial context creation.- Returns:
- the initial context
- Throws:
NamingException- in case an error occurs creating theInitialContext
-
getJndiProperties
-