Redis+tomcat Sharing Session Issues

Source: Internet
Author: User

In order to let the landlord look at how simple and easy Java development, you say you take a week did not do well, it is nonsense!! I've never had a reids and Tomcat integrated (my project has always been to the session with a cookie, in order to verify that you are talking nonsense, I also deliberately removed the JSP in my Project Session=false), time is only 20 minutes!! I have to show you today!! The most unbearable novice will only go to copy online articles, not to see the source code does not look at the document.

Version TOMCAT7 latest version, Java 7 latest version, Redis 2.6,jedis 2.7.0,common-pool 2.0.
Tomcat-seesion Integration Pack this: https://github.com/jcoleman/tomcat-redis-session-manager/releases/tag/1.2-tomcat-7-java-7, In fact, there are only 5 files! I put it in eclipse, and I'll take it in minutes.
1. Throw the jar package into the Tomcat directory

2. Configuring Tomcat's Context.xml file


3. Configuration finished, start the project, simple to die!! Verify

---Total 4 reviews---
    • Nanhu Bargeman reply @520920: I didn't jump. Start the project is to start Tomcat ah ... Jar package to be placed under Tomcat (6 months ago)
    • 520920 has been resolved, I put the package used in the project Jar is also placed under Tomcat, now Tomcat can be used normally, although not you said, but still very grateful (6 months ago)
    • 520920 You said the first step of the second step I was finished, but you said the start of the project, the start of what AH? I don't have any of your stuff. Can you tell me more about it? How to operate Ah, can be detailed to say Ah, you do not jump to say ah, you jump to say, I can not understand ah ... I was the first step in the second step to start tomcat error ... How did you start the project? (6 months ago)
    • The King of the workers was mighty, praise one (6 months ago)

http://www.oschina.net/question/251867_2143216

Redis+tomcat Sharing Session problem (GO)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.