[jbosscache-dev] JDBCCacheLoader drop table - true by default??

Manik Surtani manik at jboss.org
Thu Oct 4 17:08:28 EDT 2007


 From AdjListJDBCCacheLoaderConfig.setProperties():

    prop = props.getProperty("cache.jdbc.table.drop");
    this.dropTable = (prop == null || Boolean.valueOf(prop));

Surely this isn't intended?  The impact of this is that if someone  
using a JDBCCacheLoader doesn't specify cache.jdbc.table.drop =  
false, the table is dropped every time the cache is stopped!!  So  
much for persistent state!  :-)

Thoughts?
--
Manik Surtani

Lead, JBoss Cache
JBoss, a division of Red Hat






More information about the jbosscache-dev mailing list