[infinispan-dev] [hibernate-dev] [ISPN-6] (Infinispan cache provider for Hibernate) Remaining TODOs, notes and questions

Galder Zamarreno galder.zamarreno at redhat.com
Fri Aug 7 07:51:14 EDT 2009


Manik,

While I working on this, I've noted the following. If we define default 
cache configurations for entity/query/...etc in an infinispan 
configuration file, currently, they cannot be overriden afterwards 
programatically.

IOW, imagine there's a cache named "entity" that applies to all entities 
in a sample infinispan-configs.xml and then someone tweaks it in the 
hibernate config like this:

hibernate.cache.infinispan.entity.eviction.wake_up_interval=3000

The way I'd deal with this is that I'd create a Configuration with this 
new interval and call defineCache("entity", cfg). However, when the 
configuration file was processed, "entity" cache was added to the 
configuration overrides and hence when I call defineCache with "entity", 
it throws DuplicateCacheNameException.

So, I think DFC.initialize() shouldn't add such configurations to 
configuration overridesm map.

Thoughts?

On 08/06/2009 11:45 AM, Galder Zamarreno wrote:
> FYI: I've summarised the agreed points in
> https://jira.jboss.org/jira/browse/ISPN-6 and shortened a bit the
> configuration properties (removed .cfg. in the named cache properties).

-- 
Galder Zamarreño
Sr. Software Engineer
Infinispan, JBoss Cache


More information about the infinispan-dev mailing list