You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Murali Thirugnanam (Jira)" <ji...@apache.org> on 2023/10/24 12:03:00 UTC

[jira] [Updated] (JCS-239) CacheAccess put/remove in one application is not getting reflected in another application

     [ https://issues.apache.org/jira/browse/JCS-239?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Murali Thirugnanam updated JCS-239:
-----------------------------------
    Priority: Blocker  (was: Critical)

> CacheAccess put/remove in one application is not getting reflected in another application
> -----------------------------------------------------------------------------------------
>
>                 Key: JCS-239
>                 URL: https://issues.apache.org/jira/browse/JCS-239
>             Project: Commons JCS
>          Issue Type: Bug
>          Components: Composite Cache, RMI Remote Cache
>    Affects Versions: jcs-3.1
>            Reporter: Murali Thirugnanam
>            Priority: Blocker
>
> CacheAccess put/remove in one application is not getting reflected in another application.
> We are using Remote Cache Server which is deployed as an application in JBoss.
> We have other applications deployed in same JBoss, which uses below code snippet to put/get/remove items to remote server.
> {code:java}
> final ICompositeCacheManager cacheMgr = CompositeCacheManager.getInstance(); 
> final RemoteCacheAttributes rca = new RemoteCacheAttributes(); 
> final RemoteCacheFactory factory = new RemoteCacheFactory(); 
> rca.setRemoteLocation("localhost", 1101);     
> rca.setCacheName("testCache");     
> factory.initialize();     
> final RemoteCacheManager remoteCacheMgr = factory.getManager(rca , cacheMgr , new CacheEventLoggerDebugLogger(), new StandardSerializer());     
> AuxiliaryCache<CacheKey, CacheValue> testAuxCache = remoteCacheMgr.getCache(rca);   
> //Put:
> CacheAccess<CacheKey, CacheValue> cache = JCS.getInstance("testCache");
> testCache.put(key, value);
> //Get:
> cacheValue = cache.get(key);
> //Remove:
> cache.remove(key);
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)