java - shiro + ehcache + replication: login and logout not being replicated -


our web application using shiro authentication. we're storing sessions in ehcache, backed filestore, , using replication ensure web servers have of sessions. using peer peer replication, not multicast configuration. things seem work of time. however, time time, logins or logouts not replicated.

we see stacktraces following exception: org.apache.shiro.session.unknownsessionexception: there no session id [dc996ea4-daff-431f-946b-6a5a214f9477]

if file goes out of sync, stays out of sync.

does have suggestion why might see behavior?

frankly, i'd try away peer-to-peer replication altogether...as has potential race conditions , concurrent exceptions, explain missing entries @ random. i'd move towards more robust distributed caching solution using bigmemory max free 4 clients + 4gb of memory storage (http://terracotta.org/products/bigmemorymax)

edit - fyi, bigmemory max still ehcache...it's "distributed ehcache" "off-heap" memory capability...


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -