public class JndiSharedCacheInstanceManager extends SharedCacheInstanceManager
SharedCacheInstanceManager that finds the shared cache in JNDI
rather than instantiating one from an XML config file.| Modifier and Type | Field and Description |
|---|---|
static String |
CACHE_RESOURCE_PROP
Specifies the JNDI name under which the
Cache to use is bound. |
CHANNEL_FACTORY_RESOURCE_PROP, DEF_JGROUPS_RESOURCE, DEFAULT_CACHE_RESOURCE, LEGACY_CACHE_RESOURCE_PROP, LEGACY_CHANNEL_FACTORY_RESOURCE_PROP| Constructor and Description |
|---|
JndiSharedCacheInstanceManager()
Create a new JndiSharedCacheInstanceManager.
|
| Modifier and Type | Method and Description |
|---|---|
protected org.jboss.cache.Cache |
createSharedCache(Settings settings,
Properties properties)
Create a cache using the given settings and properties.
|
protected void |
stopSharedCache(org.jboss.cache.Cache cache)
No-op; we don't own the cache so we shouldn't stop it.
|
configureTransactionManager, getCollectionCacheInstance, getEntityCacheInstance, getQueryCacheInstance, getTimestampsCacheInstance, start, stoppublic static final String CACHE_RESOURCE_PROP
Cache to use is bound.
Note that although this configuration property has the same name as that by
in the superclass,
the meaning here is different. Note also that in this class' usage
of the property, there is no default value -- the user must specify
the property.
public JndiSharedCacheInstanceManager()
protected org.jboss.cache.Cache createSharedCache(Settings settings, Properties properties)
SharedCacheInstanceManagercreateSharedCache in class SharedCacheInstanceManagersettings - The Hibernate settingsproperties - The configuration propertiesprotected void stopSharedCache(org.jboss.cache.Cache cache)
stopSharedCache in class SharedCacheInstanceManagercache - the shared cacheCopyright © 2002-2013 Red Hat Middleware, LLC. All Rights Reserved