You can either configure your container for the clustering or have Shiro manage it: https://shiro.apache.org/session-management.html#SessionManagement-SessionClustering
On Tue, Jan 22, 2019 at 6:41 AM Prem Prakash Sharma <[email protected]> wrote: > Hi all, > > I was trying to run shiro on multiple nodes with a load balancer for > routing the requests, I have written two wrapper APIs on top for > authenticate and role/permission check respectively. I was able to get it > working on a single node but in case of multiple nodes if subsequent apis > hit different nodes I get “ This subject is anonymous” error I figured that > the subject is not shared so I configured a session persistence with > hazelcast and enterprise cache session DAO but still got the error, I am > pretty new to shiro so I feel I am missing some configurations or have made > some mistake in configs, PFA the config file > > > > Regards, > Prem > >
