Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Bartel2015-04-01 06:38:09 +0000
committerJan Bartel2015-04-02 01:23:07 +0000
commitebe536348a93e249cab6a111da2ccdeb7aec412a (patch)
treeb2a8a938a8213240cb428c4eba622c8d94e610e4
parent0cd3f1dfd7296f57d10c8ca25834d9d96ff2cffd (diff)
downloadorg.eclipse.jetty.project-ebe536348a93e249cab6a111da2ccdeb7aec412a.tar.gz
org.eclipse.jetty.project-ebe536348a93e249cab6a111da2ccdeb7aec412a.tar.xz
org.eclipse.jetty.project-ebe536348a93e249cab6a111da2ccdeb7aec412a.zip
Update mod file for infinispan session mgr and add etc file
-rw-r--r--jetty-infinispan/src/main/config/etc/jetty-infinispan.xml43
-rw-r--r--jetty-infinispan/src/main/config/modules/infinispan.mod19
2 files changed, 62 insertions, 0 deletions
diff --git a/jetty-infinispan/src/main/config/etc/jetty-infinispan.xml b/jetty-infinispan/src/main/config/etc/jetty-infinispan.xml
new file mode 100644
index 0000000000..6e6c1a207f
--- /dev/null
+++ b/jetty-infinispan/src/main/config/etc/jetty-infinispan.xml
@@ -0,0 +1,43 @@
+<?xml version="1.0"?>
+<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure_9_0.dtd">
+
+<Configure id="Server" class="org.eclipse.jetty.server.Server">
+
+ <!-- ===================================================================== -->
+ <!-- Get a reference to the default local cache. -->
+ <!-- ===================================================================== -->
+ <New id="local" class="org.infinispan.manager.DefaultCacheManager">
+ <Get id="cache" name="cache"></Get>
+ </New>
+
+ <!-- ===================================================================== -->
+ <!-- Get a reference to a hotrod client for a remote cache. -->
+ <!-- Change the name of the cache to match your setup. -->
+ <!-- ===================================================================== -->
+ <!--
+ <New id="hotrodMgr" class="org.infinispan.client.hotrod.RemoteCacheManager">
+ <Get id="cache" name="cache">sessions</Get>
+ </New>
+ -->
+
+
+ <!-- ===================================================================== -->
+ <!-- Configure a SessionIdManager with the cache selected above. -->
+ <!-- ===================================================================== -->
+ <Set name="sessionIdManager">
+ <New id="idMgr" class="org.eclipse.jetty.session.infinispan.InfinispanSessionIdManager">
+ <Arg>
+ <Ref id="Server"/>
+ </Arg>
+ <Set name="workerName">fred</Set>
+ <Set name="cache"><Ref id="cache"/></Set>
+ </New>
+ </Set>
+ <Call name="setAttribute">
+ <Arg>idMgr</Arg>
+ <Arg>
+ <Ref id="idMgr"/>
+ </Arg>
+ </Call>
+
+</Configure>
diff --git a/jetty-infinispan/src/main/config/modules/infinispan.mod b/jetty-infinispan/src/main/config/modules/infinispan.mod
index 5a72941fd9..ef6a91e167 100644
--- a/jetty-infinispan/src/main/config/modules/infinispan.mod
+++ b/jetty-infinispan/src/main/config/modules/infinispan.mod
@@ -3,7 +3,26 @@
#
[depend]
+annotations
webapp
+
+[files]
+maven://org.infinispan/infinispan-core/7.1.1.Final|lib/infinispan/infinispan-core-7.1.1.Final.jar
+maven://org.infinispan/infinispan-commons/7.1.1.Final|lib/infinispan/infinispan-commons-7.1.1.Final.jar
+maven://org.jgroups/jgroups/3.6.1.Final|lib/infinispan/jgroups-3.6.1.Final.jar
+maven://org.jboss.marshalling/jboss-marshalling-osgi/1.4.4.Final|lib/infinispan/jboss-marshalling-osgi-1.4.4.Final.jar
+maven://org.jboss.logging/jboss-logging/3.1.2.GA|lib/infinispan/jboss-logging-3.1.2.GA.jar
+
[lib]
lib/jetty-infinispan-${jetty.version}.jar
+lib/infinispan/*.jar
+
+
+[xml]
+etc/jetty-infinispan.xml
+
+#Infinispan is an open source project hosted on Github and released under the Apache 2.0 license.
+#http://infinispan.org/
+#http://www.apache.org/licenses/LICENSE-2.0.html
+

Back to the top