Hide Forgot
Title: JdbcMixedCacheStore Programmatic Configuration Describe the issue: Code snippet should be changes Suggestions for improvement: ConfigurationBuilder builder = new ConfigurationBuilder(); builder.persistence().addStore(JdbcMixedStoreConfigurationBuilder.class) .fetchPersistentState(false) .ignoreModifications(false) .purgeOnStartup(false) .stringTable() .dropOnExit(true) .createOnStart(true) .tableNamePrefix("ISPN_MIXED_STR_TABLE") .idColumnName("ID_COLUMN").idColumnType("VARCHAR(255)") .dataColumnName("DATA_COLUMN").dataColumnType("BINARY") .timestampColumnName("TIMESTAMP_COLUMN").timestampColumnType("BIGINT") .binaryTable() .dropOnExit(true) .createOnStart(true) .tableNamePrefix("ISPN_MIXED_BINARY_TABLE") .idColumnName("ID_COLUMN").idColumnType("VARCHAR(255)") .dataColumnName("DATA_COLUMN").dataColumnType("BINARY") .timestampColumnName("TIMESTAMP_COLUMN").timestampColumnType("BIGINT") .connectionPool() .connectionUrl("jdbc:h2:mem:infinispan_binary_based;DB_CLOSE_DELAY=-1") .username("sa") .driverClass("org.h2.Driver"); Additional information:
I diffed the old and new config and it seemed like this was the only change needed: Old: builder.loaders().addLoader(JdbcMixedCacheStoreConfigurationBuilder.class) New: builder.persistence().addStore(JdbcMixedStoreConfigurationBuilder.class) I've made this substitution across this topic.
(In reply to Misha H. Ali from comment #2) > I diffed the old and new config and it seemed like this was the only change > needed: > > Old: > builder.loaders().addLoader(JdbcMixedCacheStoreConfigurationBuilder.class) > New: builder.persistence().addStore(JdbcMixedStoreConfigurationBuilder.class) > > I've made this substitution across this topic. Nice! Yep this only change should be done.
The fix for this bug is now generally released and available here: https://access.redhat.com/site/documentation/en-US/Red_Hat_JBoss_Data_Grid/6.2/index.html