Skip to content

使用filter拦截器和memcached解决集群环境下java web容器session共享

Notifications You must be signed in to change notification settings

shangyi0102/memcached-session-filter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

使用filter拦截器和memcached解决集群环境下java web容器session共享

解决集群环境下java web容器session共享,使用filter拦截器和memcached实现。在tomcat 6和websphere 8测试通过,现网并发2000,日PV量1100万。 暂不支持session event包括create destory 和 attribute change

#使用指南.

配置web.xml 过滤器 springFilter org.springframework.web.filter.DelegatingFilterProxy targetBeanName memcachedSessionFilter

<filter-mapping>
    <filter-name>springFilter</filter-name>
    <url-pattern>/*</url-pattern>
</filter-mapping>

在spring中配置memcached filter 1 1 1 1

<bean id="memcachedSessionFilter" class="com.emagsoftware.web.session.MemcachedSessionFilter">
   <property name="sessionManager" ref="memcachedSessionManager"/>
</bean>

About

使用filter拦截器和memcached解决集群环境下java web容器session共享

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 84.1%
  • XSLT 15.9%