Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 1.45 KB

File metadata and controls

25 lines (19 loc) · 1.45 KB

ABOUT

This project is prepared to serve as a sample application for Hazelcast, the leading open source in-memory data grid . Here, Hazelcast's use case is HTTP Session Replication.

Requirements

You should have installed Tomcat or Jetty and Apache Maven on your system. There are other requirements already in this repo.

Load Balancing With Tomcat or Jetty

To see how application works, you need to start two different servers at different ports. Also you have to connect these servers to a load balancer. You can use apache mod\_jk module for load balancing. Shortly, you have to enable mod\_jk module apache httpd.conf file and specify workers.properties file. You must enter tomcat server ports and configurations to workers.properties file. You can find detailed explanations at:
http://tomcat.apache.org/connectors-doc/generic_howto/quick.html

Build

* `git clone https://github.com/hazelcast/hazelcast-code-samples.git` - Clone repo into the local * `cd hazelcast-code-samples/hazelcast-integration/filter-based-session-replication/` * `mvn install` - Create war file for example

Tomcat Deployment

* `cp target/session-replication.war $CATALINA_HOME/webapps/` - Copy war to Tomcat * Browse to `http://localhost:8080/session-replication/hazelcast`

Jetty Deployment

* `cp target/session-replication.war $JETTY_HOME/webapps/` - Copy war to Jetty * Browse to `http://localhost:8080/session-replication/hazelcast`