Giter Site home page Giter Site logo

memcached.distributedsession's Introduction

memcached.distributedSession


Lastest Version:0.1.0-beta


Introduce

This tool based on MemCached aims to act as a session-share-component for servers, which include Tomcat 6 and all the higher version.And what you really have to do is just write the configuration file and provide the necessary infomation of memcached servers .

Version 0.1.0's features

  1. BackupControlerInf allows you to set backup of sessions.And you can use "backupAmount" attribute to set the amount of backups.
  2. DistributedSessionsConcurrentHashMap allows your application servers regard MemCached Cluster as a giant concurrent hash map.

How to use

Configuration

Add listed code to $Catalina_Home/conf/context.xml and surround it with "context" tag.

<Manager className="com.ufo5260987423.memcached.distributedSession.manageProxy.TomcatProxy"
addresses="192.168.0.104:11211"
nodeName="Jerry" />

And the addresses attribute is the string of MemCached Servers' addresses blanked with spaces.Further more, nodeName is the identifier of tomcat server.

References package

It's necessary to add slf4j-api-1.7.5.jar and xmemcached-2.0.0.jar to $Catalina_Home/lib. Of course you should add this tool to the folder. And please run command "mvn package" in order to compile this jar.

Attention

When Compile your own jar,please modify the /src/test/resources/applicationContext.xml for unit test.Or your compile may fail.

memcached.distributedsession's People

Contributors

ufo5260987423 avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.