[jboss-jira] [JBoss JIRA] Created: (JBCACHE-1224) Wrong Connection in JDBCCacheLoader

Carsten Mjartan (JIRA) jira-events at lists.jboss.org
Thu Nov 22 11:22:20 EST 2007


Wrong Connection in JDBCCacheLoader
-----------------------------------

                 Key: JBCACHE-1224
                 URL: http://jira.jboss.com/jira/browse/JBCACHE-1224
             Project: JBoss Cache
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: Cache loaders
    Affects Versions: 1.4.1.SP6, 1.4.1.SP5
         Environment: 2 TreeCaches, each having 1 JDBCCacheLoader (passivation) using a different database
            Reporter: Carsten Mjartan
         Assigned To: Manik Surtani


I configured 2 JBossCaches as stated above. Both use CacheLoaders which use different Database Backends (using hsqldb) and with table creation turned on. After Startup both tables are created using the cached connection of the first cacheloader, so the second cacheloader goes mad.

I solved this for me by copying JDBCCacheLoader and replacing the ThreadLocal "connection" with a ThreadLocal Connection-Map using the url as the key, but I don't know if this may cause other problems (open connections?).



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

        



More information about the jboss-jira mailing list