Hi All,
I have implemented DCC functionality as mentioned on below link. https://cwiki.apache.org/confluence/display/OFBIZ/Distributed+Entity+Cache+Clear+%28DCC%29+Mechanism#DistributedEntityCacheClear(DCC)Mechanism-DistributedEntityCacheClear(DCC)Mechanism I can see counter increasing for Enqueue and Dequeue messages in ActiveMQ topic. But how can i test for sure that DCC is working? Is there a testing mechanism for DCC? Please let me know. Where can i see that cache is being cleared whenever i am updating a product( product description for example)? -- Thanks & Regards Vipin Nirwal |
Hello,
Display on your instance first OFBiz instance a party, go to your cache maintenance [1] and check it's loaded with values. On your second instance, edit this party through webtools [2], edit it Now on your first instance [1] your cache are normally clear. Nicolas [1] webtools/control/FindUtilCacheElements?UTIL_CACHE_NAME=entitycache.entity.default.Party [2] webtools/control/FindGeneric?entityName=Party On 31/12/2019 07:26, vipin nirwal wrote: > Hi All, > > I have implemented DCC functionality as mentioned on below link. > > https://cwiki.apache.org/confluence/display/OFBIZ/Distributed+Entity+Cache+Clear+%28DCC%29+Mechanism#DistributedEntityCacheClear(DCC)Mechanism-DistributedEntityCacheClear(DCC)Mechanism > > > I can see counter increasing for Enqueue and Dequeue messages in ActiveMQ > topic. But how can i test for sure that DCC is working? Is there a testing > mechanism for DCC? Please let me know. > Where can i see that cache is being cleared whenever i am updating a > product( product description for example)? > pEpkey.asc (2K) Download Attachment |
Administrator
|
Hi Vipin,
Also you can put log statements in methods like GenericDelegato::clearCacheLine HTH Jacques Le 31/12/2019 à 09:39, Nicolas Malin a écrit : > Hello, > > Display on your instance first OFBiz instance a party, go to your cache > maintenance [1] and check it's loaded with values. > > On your second instance, edit this party through webtools [2], edit it > > Now on your first instance [1] your cache are normally clear. > > Nicolas > > [1] > webtools/control/FindUtilCacheElements?UTIL_CACHE_NAME=entitycache.entity.default.Party > > [2] webtools/control/FindGeneric?entityName=Party > > On 31/12/2019 07:26, vipin nirwal wrote: >> Hi All, >> >> I have implemented DCC functionality as mentioned on below link. >> >> https://cwiki.apache.org/confluence/display/OFBIZ/Distributed+Entity+Cache+Clear+%28DCC%29+Mechanism#DistributedEntityCacheClear(DCC)Mechanism-DistributedEntityCacheClear(DCC)Mechanism >> >> >> I can see counter increasing for Enqueue and Dequeue messages in ActiveMQ >> topic. But how can i test for sure that DCC is working? Is there a testing >> mechanism for DCC? Please let me know. >> Where can i see that cache is being cleared whenever i am updating a >> product( product description for example)? >> |
Hi Nicolas, Thanks for the steps to test DCC. I tried the way you explained. But cache is not being cleared in another instance. It is showing same value as before modifying Party in another Ofbiz instance. Is there anything else i need to do to fix this behaviour? I was expecting it to be 0 byte. But it is not changing. Hi Jacques, I put the log in GenericDelegator::ClearCacheLine methods. When i am modifying any entity( i tried with Party) in Ofbiz instance 1, then i can see that log are being written in second Ofbiz instance with custom log messages that i put. Does it mean that DCC is working fine? I am not clear though. Because what Nicolas suggested, according to that cache is not being cleared. But as per your recommendation, i can see logs. Attaching log snippet too for both instances. PS: Ofbiz instance 1: Here i am modifying the Party instance. HAPPY NEW YEAR 2020 TO ALL :) BR// Vipin Nirwal On Tue, Dec 31, 2019 at 2:32 PM Jacques Le Roux <[hidden email]> wrote: Hi Vipin, Thanks & Regards
Vipin Nirwal DCC_log.txt (6K) Download Attachment |
Free forum by Nabble | Edit this page |