Bug 1034296 - 16.3.3. JdbcMixedCacheStore Programmatic Configuration, code snippet should be changed
Summary: 16.3.3. JdbcMixedCacheStore Programmatic Configuration, code snippet should b...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Data Grid 6
Classification: JBoss
Component: Documentation
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
medium
unspecified
Target Milestone: GA
: 6.2.0
Assignee: Misha H. Ali
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-25 14:47 UTC by Vitalii Chepeliuk
Modified: 2014-01-16 00:02 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
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


Attachments (Terms of Use)

Description Vitalii Chepeliuk 2013-11-25 14:47:45 UTC
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:

Comment 2 Misha H. Ali 2013-11-26 00:12:15 UTC
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.

Comment 4 Vitalii Chepeliuk 2013-11-26 08:02:41 UTC
(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.

Comment 5 Misha H. Ali 2014-01-16 00:02:38 UTC
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


Note You need to log in before you can comment on or make changes to this bug.