Re: [Architecture] How to forcefully remove an entry from app factory registry path cache?

2014-12-02 Thread Manjula Rathnayake
Hi Shazni and Pirinthapan, thanks for the clarification. On Tue, Dec 2, 2014 at 1:28 PM, Shazni Nazeer sha...@wso2.com wrote: Hi Manjula, Yes. The cacheId that you specify is not the the '*connectionId*' that we create in the method. When a resource is added to the cache we take the '

Re: [Architecture] How to forcefully remove an entry from app factory registry path cache?

2014-12-01 Thread Manjula Rathnayake
Hi Shazni, I checked the code for removeCache method and found that cacheKey is calculated as below. *String connectionId = (dataBaseConfiguration.getUserName() != null? dataBaseConfiguration.getUserName().split(@)[0]:dataBaseConfiguration.getUserName()) + @ + dataBaseConfiguration.getDbUrl();

Re: [Architecture] How to forcefully remove an entry from app factory registry path cache?

2014-12-01 Thread Pirinthapan Mahendran
Hi Manjula, As my understanding cacheKey is a RegistryCacheKey object, which is different from the cacheId. So we don't need to read the cacheId. Thanks. Mahendran Pirinthapan Software Engineer | WSO2 Inc. Mobile +94772378732. On Tue, Dec 2, 2014 at 12:01 PM, Manjula Rathnayake

Re: [Architecture] How to forcefully remove an entry from app factory registry path cache?

2014-12-01 Thread Shazni Nazeer
Hi Manjula, Yes. The cacheId that you specify is not the the '*connectionId*' that we create in the method. When a resource is added to the cache we take the ' *connectionId*' the way it is implemented to create the cache key. Therefore while retrieving the cache we should use the same way.

Re: [Architecture] How to forcefully remove an entry from app factory registry path cache?

2014-11-18 Thread Pirinthapan Mahendran
Hi all, Since we don't have any other ways to overcome this issue, I'm going with the solution by implementing a method to remove the registry cache as Shazni mentioned in the link. So before we doing a write call to the SM registry we will call this method to clear the cache for the particular

Re: [Architecture] How to forcefully remove an entry from app factory registry path cache?

2014-11-12 Thread Shazni Nazeer
Hi, Given that we know the registry path of the resource of which cache to be deleted and have an instance of the registry we can manually delete the cache with a method like removeCache in the below file. However, it's not a clean or correct way of manipulating the registry cache.

Re: [Architecture] How to forcefully remove an entry from app factory registry path cache?

2014-11-12 Thread Amal Gunatilake
Hi, The global cache invalidation implementation is complete long time ago and the documentation can be found at [1]. This has been tested in registry and it's working well. However this is implemented to support from carbon 4.3.0 onwards. [1]

[Architecture] How to forcefully remove an entry from app factory registry path cache?

2014-11-10 Thread Amalka Subasinghe
Hi, The scenario is, we have mounted SM's registry to the App Factory registry to remove the remote call for read the resources. but still the write calls happens via SM. see the image below. ​ The problem is, once we do a write call to the SM's registry, App Factory registry cache won't get

Re: [Architecture] How to forcefully remove an entry from app factory registry path cache?

2014-11-10 Thread Pulasthi Supun
Hi All, From what i understand the AF and SM are in different domains that is why distributed caching will not be able to handle this scenario right?. global cluster cache invalidation has been done with the use of a pub sub mechanism ( discussed in archi under Global cluster cache invalidation