请教 关于Spring   security 获取在线人数的问题?security.xml 文件:<?xml version="1.0" encoding="UTF-8"?>
<beans:beans xmlns="http://www.springframework.org/schema/security"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:beans="http://www.springframework.org/schema/beans"
xmlns:security="http://www.springframework.org/schema/security"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
              http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-2.0.1.xsd"> <http auto-config="true" lowercase-comparisons="false"
access-decision-manager-ref="accessDecisionManager" entry-point-ref="casProcessingFilterEntryPoint">
         <intercept-url pattern="/pages/system/role/sysRoleReload.jsp" filters="none" />
 <intercept-url pattern="/left.html" filters="none" />
 <form-login login-page="/login.jsp"
authentication-failure-url="/login.jsp?error=true"
login-processing-url="/j_security_check" default-target-url="/ztzt.html"
always-use-default-target="true" />
 <logout logout-success-url="http://192.168.0.19:7010/cas/logout"/>
<remember-me user-service-ref="sysUserDao"
key="e37f4b31-0c45-11dd-bd0b-0800200c9a66" />
</http> <beans:bean id="filterInvocationDefinitionSource"
class="com.summit.system.security.JdbcFilterInvocationDefinitionSource">
<beans:property name="dataSource" ref="dataSource" />
<beans:property name="resourceQuery"
value="
select f.file_location,f.file_roles from sys_function f where f.file_location is not null and (select count(*) from sys_function cf where cf.parent_id = f.id)=0
union
select o.file_location,o.oper_rolecode from sys_operation o where o.file_location is not null
" />
</beans:bean> <beans:bean id="accessDecisionManager"
class="org.springframework.security.vote.AffirmativeBased">
<beans:property name="allowIfAllAbstainDecisions"
value="false" />
<beans:property name="decisionVoters">
<beans:list>
<beans:bean class="org.springframework.security.vote.RoleVoter">
<beans:property name="rolePrefix" value="" />
</beans:bean>
</beans:list>
</beans:property>
</beans:bean> <beans:bean id="filterSecurityInterceptor"
class="org.springframework.security.intercept.web.FilterSecurityInterceptor"
autowire="byType">
<custom-filter before="FILTER_SECURITY_INTERCEPTOR" />
<beans:property name="objectDefinitionSource" ref="filterInvocationDefinitionSource" />
</beans:bean> <authentication-provider user-service-ref="sysUserDao">
<password-encoder ref="passwordEncoder" />
</authentication-provider> <!-- cas -->
 <authentication-manager alias="authenticationManager"/>
    <beans:bean id="casProcessingFilter" class="org.springframework.security.ui.cas.CasProcessingFilter">
        <custom-filter after="CAS_PROCESSING_FILTER"/>
        <beans:property name="authenticationManager" ref="authenticationManager"/>
        <beans:property name="authenticationFailureUrl" value="/casfailed.jsp" />
        <beans:property name="defaultTargetUrl" value="/" />
    </beans:bean>    <beans:bean id="casProcessingFilterEntryPoint"
                class="org.springframework.security.ui.cas.CasProcessingFilterEntryPoint">
        <beans:property name="loginUrl" value="http://192.168.0.19:7010/cas/login" />
        <beans:property name="serviceProperties" ref="casServiceProperties" />
    </beans:bean>    <beans:bean id="casServiceProperties" class="org.springframework.security.ui.cas.ServiceProperties">
        <beans:property name="service" value="http://192.168.0.19:7010/system/j_spring_cas_security_check"/>
        <beans:property name="sendRenew" value="false"/>
    </beans:bean>    <beans:bean id="casAuthenticationProvider"
                class="org.springframework.security.providers.cas.CasAuthenticationProvider">
        <custom-authentication-provider />
        <beans:property name="userDetailsService" ref="sysUserDao" />
        <beans:property name="serviceProperties" ref="casServiceProperties" />
        <beans:property name="ticketValidator">
            <beans:bean class="org.jasig.cas.client.validation.Cas20ServiceTicketValidator">
                <beans:constructor-arg index="0" value="http://192.168.0.19:7010/cas" />
            </beans:bean>
        </beans:property>
        <beans:property name="key" value="system" />
    </beans:bean>
</beans:beans>