cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Schröder <Peter.Schroe...@freenet-ag.de>
Subject level 3 caching
Date Thu, 19 Apr 2007 12:14:20 GMT
hi,

i am currently investigating the use of cayennes cross jvm caching with jgroups, shown here

http://cayenne.apache.org/doc12/object-caching.html
and here
http://cayenne.apache.org/doc12/configuring-caching-behavior.html

my question is, if it is possible to implement a cross-jvm counter, that wont be bitten by
concurrency issues.

f.e.:

synchronized incrementCount(){
   myObject.setCount(myObject.getCount() + 1) 
}
 
if properly used, this would be sufficent in a single jvm to avoid issues. 
can i achieve something like that within level-3-caching?

kind regards,
peter

Mime
View raw message