Thanks, Instead of using the In Memory version, this morning I tried
InspektrThrottledSubmissionByIpAddressAndUsernameHandlerInterceptorAdapter,
and it works:
In cas-servlet.xml:
<bean class="org.springframework.webflow.mvc.servlet.FlowHandlerMapping"
p:flowRegistry-ref="flowRegistry" p:order="2">
<property name="interceptors">
<list>
<ref bean="localeChangeInterceptor" />
<ref bean
class="org.jasig.cas.web.support.InspektrThrottledSubmissionByIpAddressAndUsernameHandlerInterceptorAdapter"
p:failureRangeInSeconds="120"
p:failureThreshold="5">
<constructor-arg index="0" ref="auditTrailManager" />
<constructor-arg index="1" ref="dataSource" />
</bean>
</list>
</property>
</bean>
And also add bean definition for auditTrailManager in cas-servlet.xml:
<bean id="auditTrailManager"
class="com.github.inspektr.audit.support.JdbcAuditTrailManager">
<constructor-arg index="0" ref="inspektrTransactionTemplate" />
<property name="dataSource" ref="dataSource" />
</bean>
Thanks,
Xuejin
--
View this message in context:
http://jasig.275507.n4.nabble.com/Throttling-config-in-cas-3-4-2-1-tp2543984p3036477.html
Sent from the CAS Users mailing list archive at Nabble.com.
--
You are currently subscribed to [email protected] as:
[email protected]
To unsubscribe, change settings or access archives, see
http://www.ja-sig.org/wiki/display/JSG/cas-user