jakarta-jcs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rajkumar Singh" <raj.si...@patni.com>
Subject Lateral cache PutOnlyMode attribute significance
Date Thu, 18 Nov 2004 10:27:48 GMT
Hi

Can somebody help me to know the importance of the PutOnlyMode attribute for
Lateral caching?

I created 2 cache on 2 different machines i.e cache 1 on machine 1 and cache
2 on machine 2.

Scenario 1:
The cache.ccf file for each cache had PutOnlyMode set to true viz.
jcs.auxiliary.LTCP.attributes.PutOnlyMode=true.
I started client 1, connected to cache 1, that did a put() operation in an
infinite loop after sleeping it for some time. Then I started client 2,
connected to cache 2, that did a get() operation.  The client 2 got the
object put by the client 1.

Scenario 2:
The cache.ccf file for each cache had PutOnlyMode set to true viz.
jcs.auxiliary.LTCP.attributes.PutOnlyMode=true.
First, I started client 2, connected to cache 2, that did a get() operation.
It got NULL. Next I started client 1, connected to cache 1, that did a put()
operation in an infinite loop after sleeping it for some time. After that
client 2 started receiving the cached object.

The scenario 1 and scenario 2 were repeated if I set PutOnlyMode set to
false. viz. jcs.auxiliary.LTCP.attributes.PutOnlyMode=false.

Is there any difference in setting PutOnlyMode to either true or false?

Thanks
Raj




http://www.patni.com
World-Wide Partnerships. World-Class Solutions.
_____________________________________________________________________

This e-mail message may contain proprietary, confidential or legally
privileged information for the sole use of the person or entity to
whom this message was originally addressed. Any review, e-transmission
dissemination or other use of or taking of any action in reliance upon
this information by persons or entities other than the intended
recipient is prohibited. If you have received this e-mail in error
kindly delete  this e-mail from your records. If it appears that this
mail has been forwarded to you without proper authority, please notify
us immediately at netadmin@patni.com and delete this mail. 
_____________________________________________________________________


Mime
View raw message