| Summary: | 16.3.3. JdbcMixedCacheStore Programmatic Configuration, code snippet should be changed | ||
|---|---|---|---|
| Product: | [JBoss] JBoss Data Grid 6 | Reporter: | Vitalii Chepeliuk <vchepeli> |
| Component: | Documentation | Assignee: | Misha H. Ali <mhusnain> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | |
| Severity: | unspecified | Docs Contact: | |
| Priority: | medium | ||
| Version: | 6.2.0 | CC: | jdg-bugs |
| Target Milestone: | GA | ||
| Target Release: | 6.2.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: |
Build Name: 12532, Administration and Configuration Guide-6.2-3
Build Date: 25-11-2013 22:27:18
Topic ID: 16057-458170 [Latest]
|
|
| Last Closed: | 2014-01-16 00:02:38 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
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 |
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: