Community

jboss cache as hibernate 2nd level - cluster node doesn't persist replicated data

reply from Sergey Graschenko in JBoss Cache - View the full discussion

> JBoss Cache 2LC for Hibernate that's also configured with a cache store  of its own?

 

Not exactly. What I'm trying to do is to have 2 servers with JBoss Cache as 2LC on every of them, no any "extra" cache store. And I have cache instance binded to database "db1" on the 1st server and binded to database "db2" on the second server. Schema is the same.

 

Configuration boots up with no any error messages.

 

Then I succedeed in storing the record (entity) in the first server - it is _stored in the cache_ AND _persisted in db1_. Cached record then propagates to the second node, so basically it is _accessible_ from the second server but only up to the point when it is evicted. After that, second server misses the cache and can't find the record (entity) in database "db2".

Reply to this message by going to Community

Start a new discussion in JBoss Cache at Community