Example usage for org.hibernate.internal.util.jndi JndiHelper extractJndiProperties

List of usage examples for org.hibernate.internal.util.jndi JndiHelper extractJndiProperties

Introduction

In this page you can find the example usage for org.hibernate.internal.util.jndi JndiHelper extractJndiProperties.

Prototype

@SuppressWarnings({ "unchecked" })
public static Properties extractJndiProperties(Map configurationValues) 

Source Link

Document

Given a hodgepodge of properties, extract out the ones relevant for JNDI interaction.

Usage

From source file:org.infinispan.hibernate.cache.commons.JndiInfinispanRegionFactory.java

License:LGPL

@Override
protected EmbeddedCacheManager createCacheManager(Properties properties, ServiceRegistry serviceRegistry)
        throws CacheException {
    final String name = ConfigurationHelper.getString(CACHE_MANAGER_RESOURCE_PROP, properties, null);
    if (name == null) {
        throw log.propertyCacheManagerResourceNotSet();
    }//w ww  . ja  va 2 s  .c  o m
    return locateCacheManager(name, JndiHelper.extractJndiProperties(properties));
}