ejbLocalObjectStore = new UnboundedEJBObjectCache(ejbName);
ejbLocalObjectStore.init(DEFAULT_CACHE_SIZE,
numberOfVictimsToSelect, 0L, (float)1.0, null);
} else {
cacheSize = (cacheSize <= 0) ? DEFAULT_CACHE_SIZE : cacheSize;
ejbObjectStore = new FIFOEJBObjectCache(ejbName);
ejbObjectStore.init(cacheSize, numberOfVictimsToSelect, idleTimeout,
(float)1.0, null);
ejbObjectStore.setEJBObjectCacheListener(
new EJBObjectCacheVictimHandler());
ejbLocalObjectStore = new FIFOEJBObjectCache(ejbName);
ejbLocalObjectStore.init(cacheSize, numberOfVictimsToSelect,
idleTimeout, (float)1.0, null);
ejbLocalObjectStore.setEJBObjectCacheListener(
new LocalEJBObjectCacheVictimHandler());
}