public class JndiMultiplexingCacheInstanceManager extends MultiplexingCacheInstanceManager
MultiplexingCacheInstanceManager
that finds its cache factory
in JNDI rather than creating one itself.Modifier and Type | Field and Description |
---|---|
static String |
CACHE_FACTORY_RESOURCE_PROP
Specifies the JNDI name under which the
CacheManager to use is bound. |
CHANNEL_FACTORY_RESOURCE_PROP, COLLECTION_CACHE_RESOURCE_PROP, DEF_CACHE_FACTORY_RESOURCE, DEF_ENTITY_RESOURCE, DEF_JGROUPS_RESOURCE, DEF_QUERY_RESOURCE, DEF_TS_RESOURCE, ENTITY_CACHE_RESOURCE_PROP, LEGACY_CACHE_FACTORY_RESOURCE_PROP, LEGACY_CHANNEL_FACTORY_RESOURCE_PROP, LEGACY_COLLECTION_CACHE_RESOURCE_PROP, LEGACY_ENTITY_CACHE_RESOURCE_PROP, LEGACY_QUERY_CACHE_RESOURCE_PROP, LEGACY_TIMESTAMP_CACHE_RESOURCE_PROP, QUERY_CACHE_RESOURCE_PROP, TIMESTAMP_CACHE_RESOURCE_PROP
Constructor and Description |
---|
JndiMultiplexingCacheInstanceManager()
Create a new JndiMultiplexingCacheInstanceManager.
|
Modifier and Type | Method and Description |
---|---|
void |
start(Settings settings,
Properties properties)
Lifecycle callback to perform any necessary initialization of the
CacheInstanceManager.
|
getCacheFactory, getChannelFactory, getCollectionCacheInstance, getEntityCacheInstance, getQueryCacheInstance, getTimestampsCacheInstance, setCacheFactory, setChannelFactory, stop
public static final String CACHE_FACTORY_RESOURCE_PROP
CacheManager
to use is bound.
There is no default value -- the user must specify the property.public JndiMultiplexingCacheInstanceManager()
public void start(Settings settings, Properties properties) throws CacheException
MultiplexingCacheInstanceManager
SessionFactoryImpl
.start
in interface CacheInstanceManager
start
in class MultiplexingCacheInstanceManager
settings
- The settings in effect.properties
- The defined cfg propertiesCacheException
- Indicates problems starting the L2 cache impl; considered as
a sign to stop SessionFactory
building.Copyright © 2002-2014 Red Hat Middleware, LLC. All Rights Reserved