Skip to content

Instantly share code, notes, and snippets.

@mente
Created September 7, 2011 08:38
Show Gist options
  • Save mente/1200069 to your computer and use it in GitHub Desktop.
Save mente/1200069 to your computer and use it in GitHub Desktop.
mmo definition
<bean id="securityManager" class="org.apache.shiro.mgt.DefaultSecurityManager"
p:realm-ref="onyxRealm">
<property name="cacheManager">
<bean class="org.apache.shiro.cache.MemoryConstrainedCacheManager" />
</property>
<property name="sessionManager">
<bean class="org.apache.shiro.session.mgt.DefaultSessionManager"
p:sessionDAO-ref="coreSessionDAO" />
</property>
</bean>
<bean id="lifecycleBeanPostProcessor" class="org.apache.shiro.spring.LifecycleBeanPostProcessor"/>
<bean class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
<property name="staticMethod" value="org.apache.shiro.SecurityUtils.setSecurityManager"/>
<property name="arguments" ref="securityManager"/>
</bean>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment