[jbosscache-dev] JDBCCacheLoader drop table - true by default??
Jason T. Greene
jason.greene at redhat.com
Thu Oct 4 17:56:52 EDT 2007
Manik Surtani wrote:
> 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?
That's not good, it should definitely be switched in the next release.
More information about the jbosscache-dev
mailing list