hazelcast-tomcat-sessionmanager | Tomcat Based Web Session Replication | Application Framework library
kandi X-RAY | hazelcast-tomcat-sessionmanager Summary
kandi X-RAY | hazelcast-tomcat-sessionmanager Summary
Hazelcast Tomcat Session Manager is a container specific module that enables session replication for JEE Web Applications without requiring changes to the application. Tomcat Web Session Replication Module has been tested against the following containers. The latest tested versions are 7.0.40, 8.0.36, 8.5.9, and 9.0.27.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Find a session .
- Start internal session manager .
- Create a Hazelcast instance .
- Serialize the map to objectDataOutput .
- Initializes the config .
- Handle the requested session change .
- Performs the deserialization of this object .
- Store session or remove it from session manager
- Gets or creates a new managed session id .
- Invalidates sessions from the given entry .
hazelcast-tomcat-sessionmanager Key Features
hazelcast-tomcat-sessionmanager Examples and Code Snippets
Community Discussions
Trending Discussions on hazelcast-tomcat-sessionmanager
QUESTION
I believe I am missing some configuration either on load balancing side or in tomcat, it would great if someone could help and provide the solution.
What am i trying to do?
- Setup two tomcat instances with P2P Hazelcast session replication for tomcat6 by referring to this guide
- I have placed the hazelcast-all-.jar, hazelcast-tomcat-sessionmanager-.jar and hazelcast.xml in the folder $CATALINA_HOME/lib/
- Updated the listener and the context configs as shown below
- Updated Tomcat Failover and the jvmRoute Parameter as shown below
- So far, i was able to bring up the tomcat instances which connect to each others hazelcast instances, I see that in the tomcat logs.
- The users connects to the load balancer and are routed to the balancer members - no issues here.
- But when I take one of the tomcat instance down to test failover and to make sure users who were connected to tom instance were able to continue to cat instance with the same session and without having to sign in again. But I believe the load balancer seems to be creating a new session and forces user to sign in again to establish a session with cat instance. I suspect it this but not sure.
- Or are the sessions not being replicated and synced in both hazelcast instances? - This is happening
- Do we have a client where I could monitor hazelcast sessions? - Now I do
I did refer to this issue which refers setting up hazelcast.sessionId instead of JSESSIONID but does not provide any specifics about how to.
Versions -
...ANSWER
Answered 2017-Oct-27 at 09:44Although I don't have much experience of using Apache HTTP server as a load balancer, looking at this page, I think you need to update your load balancer configuration as follows:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install hazelcast-tomcat-sessionmanager
You can use hazelcast-tomcat-sessionmanager like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the hazelcast-tomcat-sessionmanager component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page