Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Genesys PGR
Genesys Backend
Commits
1ed2b8ab
Commit
1ed2b8ab
authored
Feb 20, 2014
by
Matija Obreza
Browse files
Enabled Hazelcast session filter
parent
4971a015
Changes
4
Hide whitespace changes
Inline
Side-by-side
pom.xml
View file @
1ed2b8ab
...
...
@@ -468,6 +468,11 @@
<artifactId>
hazelcast-cloud
</artifactId>
<version>
3.1.5
</version>
</dependency>
<dependency>
<groupId>
com.hazelcast
</groupId>
<artifactId>
hazelcast-wm
</artifactId>
<version>
3.1.5
</version>
</dependency>
</dependencies>
<build>
...
...
src/main/resources/log4j.properties
View file @
1ed2b8ab
...
...
@@ -33,3 +33,6 @@ log4j.rootLogger=info, stdout
#log4j.category.org.springframework.security.access=trace
#log4j.category.org.springframework.security.acl=trace
#log4j.category.org.springframework.expression=trace
log4j.category.com.hazelcast
=
warn
#log4j.category.com.hazelcast.web=debug
#log4j.category.com.hazelcast.aws=debug
src/main/resources/spring/spring-cache.xml
View file @
1ed2b8ab
...
...
@@ -45,6 +45,7 @@
<hz:properties>
<hz:property
name=
"hazelcast.merge.first.run.delay.seconds"
>
5
</hz:property>
<hz:property
name=
"hazelcast.merge.next.run.delay.seconds"
>
5
</hz:property>
<hz:property
name=
"hazelcast.logging.type"
>
log4j
</hz:property>
</hz:properties>
<hz:network
port=
"${hazelcast.port}"
port-auto-increment=
"true"
>
...
...
@@ -72,6 +73,7 @@
<hz:properties>
<hz:property
name=
"hazelcast.merge.first.run.delay.seconds"
>
5
</hz:property>
<hz:property
name=
"hazelcast.merge.next.run.delay.seconds"
>
5
</hz:property>
<hz:property
name=
"hazelcast.logging.type"
>
log4j
</hz:property>
</hz:properties>
<hz:network
port=
"${hazelcast.port}"
>
<hz:join>
...
...
src/main/webapp/WEB-INF/web.xml
View file @
1ed2b8ab
...
...
@@ -25,6 +25,127 @@
<param-name>
contextConfigLocation
</param-name>
<param-value>
classpath:spring/application-context.xml
</param-value>
</context-param>
<filter>
<filter-name>
hazelcast-filter
</filter-name>
<filter-class>
com.hazelcast.web.WebFilter
</filter-class>
<!--
Name of the distributed map storing
your web session objects
-->
<init-param>
<param-name>
map-name
</param-name>
<param-value>
my-sessions
</param-value>
</init-param>
<!--
How is your load-balancer configured?
stick-session means all requests of a session
is routed to the node where the session is first created.
This is excellent for performance.
If sticky-session is set to false, when a session is updated
on a node, entry for this session on all other nodes is invalidated.
You have to know how your load-balancer is configured before
setting this parameter. Default is true.
-->
<init-param>
<param-name>
sticky-session
</param-name>
<param-value>
false
</param-value>
</init-param>
<!--
Name of session id cookie
-->
<init-param>
<param-name>
cookie-name
</param-name>
<param-value>
hazelcast.sessionId
</param-value>
</init-param>
<!--
Domain of session id cookie. Default is based on incoming request.
<init-param>
<param-name>cookie-domain</param-name>
<param-value>.mywebsite.com</param-value>
</init-param>
-->
<!--
Should cookie only be sent using a secure protocol? Default is false.
-->
<init-param>
<param-name>
cookie-secure
</param-name>
<param-value>
false
</param-value>
</init-param>
<!--
Should HttpOnly attribute be set on cookie ? Default is false.
-->
<init-param>
<param-name>
cookie-http-only
</param-name>
<param-value>
false
</param-value>
</init-param>
<!--
Are you debugging? Default is false.
-->
<init-param>
<param-name>
debug
</param-name>
<param-value>
true
</param-value>
</init-param>
<!--
Configuration xml location;
* as servlet resource OR
* as classpath resource OR
* as URL
Default is one of hazelcast-default.xml
or hazelcast.xml in classpath.
<init-param>
<param-name>config-location</param-name>
<param-value>/WEB-INF/hazelcast.xml</param-value>
</init-param>
-->
<!--
Do you want to use an existing HazelcastInstance?
Default is null.
-->
<init-param>
<param-name>
instance-name
</param-name>
<param-value>
theHazelcast
</param-value>
</init-param>
<!--
Do you want to connect as a client to an existing cluster?
Default is false.
-->
<init-param>
<param-name>
use-client
</param-name>
<param-value>
false
</param-value>
</init-param>
<!--
Client configuration location;
* as servlet resource OR
* as classpath resource OR
* as URL
Default is null.
<init-param>
<param-name>client-config-location</param-name>
<param-value>/WEB-INF/hazelcast-client.properties</param-value>
</init-param>
-->
<!--
Do you want to shutdown HazelcastInstance during
web application undeploy process?
Default is true.
-->
<init-param>
<param-name>
shutdown-on-destroy
</param-name>
<param-value>
true
</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>
hazelcast-filter
</filter-name>
<url-pattern>
/*
</url-pattern>
<dispatcher>
FORWARD
</dispatcher>
<dispatcher>
INCLUDE
</dispatcher>
<dispatcher>
REQUEST
</dispatcher>
</filter-mapping>
<listener>
<listener-class>
com.hazelcast.web.SessionListener
</listener-class>
</listener>
<listener>
<listener-class>
org.springframework.web.context.ContextLoaderListener
</listener-class>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment