public class JNDIHelper extends Object
InitialContext
.Modifier and Type | Field and Description |
---|---|
static String |
HIBERNATE_JNDI_PREFIX |
Modifier and Type | Method and Description |
---|---|
static InitialContext |
getInitialContext(Properties properties,
String prefix)
Creates an initial context
|
static Properties |
getJndiProperties(Properties properties,
String prefix) |
public static final String HIBERNATE_JNDI_PREFIX
public static InitialContext getInitialContext(Properties properties, String prefix) throws NamingException
properties
- Configuration properties to check for JNDI specific propertiesprefix
- The prefix used to designate JDNI properties. If a property from property
contains
a property which matches the prefix, the prefix gets removed and the property passed to the initial context creation.NamingException
- in case an error occurs creating the InitialContext
public static Properties getJndiProperties(Properties properties, String prefix)
Copyright © 2006-2017 Red Hat, Inc. All Rights Reserved