Bug 1045029

Summary: Appears to be a missing line of code in the documentation
Product: [JBoss] JBoss Data Grid 6 Reporter: Tim Anderson <timandersdroid>
Component: DocumentationAssignee: gsheldon
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.2.0CC: gsheldon, jdg-bugs, mgencur, mhusnain
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: 12540, Developer Guide-6.2-Beta-3 Build Date: 06-11-2013 13:54:54 Topic ID: 9112-538743 [Latest]
Last Closed: 2014-01-16 00:03:36 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:

Description Tim Anderson 2013-12-19 13:32:55 UTC
Title: Create a Customized Cache Using the Default Named Cache

Describe the issue:
It looks to me like a line of code is missing in the sample code.  Section 5.1.1.2, in the first code snippet, it looks like you need:
    manager.defineConfiguration(newCacheName, c);
to be present before the call to:
    Cache<String, String> cache = manager.getCache(newCacheName);
Suggestions for improvement:
Add the line:
    manager.defineConfiguration(newCacheName, c);
in section 5.1.1.2 in the first code snippet.

Additional information:

Comment 3 Misha H. Ali 2014-01-16 00:03:36 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