Hello. I am looking into using Shiro for an OSGi based application, but i have run into a few things that i have trouble figuring out: I have dabbled in Shiro before and i don't think i can properly express how much i prefer it to JAAS. But this will be my first attempt to implement a Shiro-backed application in OSGi, and i am having some trouble figuring out how exactly to use it correctly.
Looking around the interwebs, i have found some guides to using shiro in OSGi, but i have found none that actually use Shiro in an "OSGi way", doing dynamic registrations of realms and such. 1. Is it possible for a Bundle to register its own realms to Shiro at runtime? The examples and resources i have looked at gives me the impression that the realms are bound to the shiro securitymanager once, and they do not seem easy to add to or change. 2. Can sessions and cache be shared across a karaf cluster, or is the shiro bundle only local to single Karaf instance.
