[infinispan-issues] [JBoss JIRA] Created: (ISPN-106) JdbcXXXCacheStore should honor cacheName

Klaus Friedel (JIRA) jira-events at lists.jboss.org
Mon Jun 15 07:27:56 EDT 2009


JdbcXXXCacheStore should honor cacheName
----------------------------------------

                 Key: ISPN-106
                 URL: https://jira.jboss.org/jira/browse/ISPN-106
             Project: Infinispan
          Issue Type: Feature Request
          Components: Loaders and Stores
    Affects Versions: 4.0.0.ALPHA5
            Reporter: Klaus Friedel
            Assignee: Manik Surtani


Creating multiple caches from a CacheManager configured with a JdbcXXXCacheStore results in unpredicted behaviour:
After creating a CacheManger that persists its entries with a JdbcXXXCacheStore one will see strange behaviour like this:

Cache fooCache = cacheManager.getCache("foo");
Cache barCache = cacheManager.getCache("bar");

// single put:
fooCache.put(42, "Hello World");

After restart :

fooCache.contains(42); // true
barCache.contains(42); // true !!!!

To circumvent this behaviour the only solution is to create one CacheStore per Cache. So one migth end up using a lot of different CacheManagers.

The best solution IMHO would be to add sopport for a "cacheName" column to "TableManipulation". So different caches could share the same table.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the infinispan-issues mailing list