>> Unless database1 and database2 are somehow replicated, I can't see your use case working.
Thank you for the answer.
I understand I could do direct replication with databases.
What I wanted to do is to avoid extra network traffic since the same data (fresh entities) will go (or at least I could config it) thru jboss cache cluster replication anyhow.
I'm still considering "manual persist at eviction". I mean to create a cache listener and do "manul persist" at eviction if event is not local.
Could you advice me what kind of problems will I get if any?