| Summary: | 3.2.1. Create a New RemoteCacheManager use deprecated API | ||
|---|---|---|---|
| Product: | [JBoss] JBoss Data Grid 6 | Reporter: | Vitalii Chepeliuk <vchepeli> |
| Component: | Documentation | Assignee: | gsheldon |
| Status: | CLOSED DUPLICATE | QA Contact: | |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| 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-Beta-3
Build Date: 06-11-2013 16:02:50
Topic ID: 8989-523664 [Latest]
|
|
| Last Closed: | 2013-11-11 23:19:15 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: | |
And I forgot there is other other way to create RemoteCacheManager and RemoteCache where hotrod-client.properties are still used RemoteCacheManager manager = new RemoteCacheManager(); RemoteCache defaultCache = manager.getCache(); This could be added to documentation If somebody wants still use this hotrod-client.properties And I forgot one more where hotrod-client.properties are still used RemoteCacheManager manager = new RemoteCacheManager(true|false); RemoteCache defaultCache = manager.getCache(); This could be added to documentation If somebody wants still use this hotrod-client.properties This issue has also been raised in BZ#1028746 and will be addressed there. Closing this bug as a duplicate. *** This bug has been marked as a duplicate of bug 1028746 *** |
Title: Create a New RemoteCacheManager Describe the issue: Creating RemoteCacheManaget via Properties is deprecated in infinispan 6.0.0 Properties props = new Properties(); props.put("infinispan.client.hotrod.server_list", "127.0.0.1:11222"); RemoteCacheManager manager = new RemoteCacheManager(props); RemoteCache defaultCache = manager.getCache(); Suggestions for improvement: ConfigurationBuilder should be used Configuration conf = new ConfigurationBuilder().addServer().host(<hostname|ip>).port(<port>).build(); RemoteCacheManager manager = new RemoteCacheManager(conf); RemoteCache defaultCache = manager.getCache(); Additional information: creating remote cache manager with constructor RemoteCacheManager(Properties props); will be dropped in next release of JDG