Hi,
we are setting up a cluster of ofbiz(opentaps) instances for load
balancing.
Both the instances will point to the same database.
We want the entity cache to be consistent across both the instances.
>From the documentation, I gather that we need to set *
distributed-cache-clear-enabled="true"* in entity-engine.xml.
We also set the *distributed-cache-clear-class-name as
org.ofbiz.entityext.cache.EntityCacheServices*
Even after doing so, the cache on the other instance is not getting cleared
for a particular entity under observation.
Do I need to set up a JMS server?
How do I tell ofbiz / entity engine cache which JMS server should it look up
and what topic it should publish to?
How do I configure ofbiz / entity engine which JMS server it should lookup
and the topic it needs to subscribe to?
In services.xml, I see the engine as JMS. How does this service get invoked
on the other instance ?
<service name="distributedClearCacheLineByValue" engine="*jms*"
location="serviceMessenger" invoke="clearCacheLineByValue" auth="true">
<description>Clear Cache Line by value for all Servers listening to
the topic</description>
<attribute name="value" type="org.ofbiz.entity.GenericValue"
mode="IN" optional="false"/>
</service>
Any help / pointers are appreciated
Thanks in advance,
Vijay