Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Bartel2015-05-07 02:12:50 -0400
committerJan Bartel2015-05-07 02:12:50 -0400
commitdbf4b2d72dbedcd61b106e4fde943286adf4580f (patch)
treee86311ecd550ef3346f84961fb2e7de16a8fa9de
parente2c7499bae87602c003e315dd37051b374b83ac6 (diff)
downloadorg.eclipse.jetty.project-dbf4b2d72dbedcd61b106e4fde943286adf4580f.tar.gz
org.eclipse.jetty.project-dbf4b2d72dbedcd61b106e4fde943286adf4580f.tar.xz
org.eclipse.jetty.project-dbf4b2d72dbedcd61b106e4fde943286adf4580f.zip
466669 Add nosql.mod into jetty distro
-rw-r--r--jetty-distribution/pom.xml5
-rw-r--r--jetty-nosql/src/main/config/etc/jetty-nosql.xml19
-rw-r--r--jetty-nosql/src/main/config/modules/nosql.mod27
3 files changed, 49 insertions, 2 deletions
diff --git a/jetty-distribution/pom.xml b/jetty-distribution/pom.xml
index 90db9687ac..3bcb0f311a 100644
--- a/jetty-distribution/pom.xml
+++ b/jetty-distribution/pom.xml
@@ -778,5 +778,10 @@
<artifactId>jetty-infinispan</artifactId>
<version>${project.version}</version>
</dependency>
+ <dependency>
+ <groupId>org.eclipse.jetty</groupId>
+ <artifactId>jetty-nosql</artifactId>
+ <version>${project.version}</version>
+ </dependency>
</dependencies>
</project>
diff --git a/jetty-nosql/src/main/config/etc/jetty-nosql.xml b/jetty-nosql/src/main/config/etc/jetty-nosql.xml
new file mode 100644
index 0000000000..a955e7ad53
--- /dev/null
+++ b/jetty-nosql/src/main/config/etc/jetty-nosql.xml
@@ -0,0 +1,19 @@
+<?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">
+
+ <!-- ===================================================================== -->
+ <!-- Configure a MongoSessionIdManager -->
+ <!-- ===================================================================== -->
+ <Set name="sessionIdManager">
+ <New id="sessionIdMgr" class="org.eclipse.jetty.nosql.mongodb.MongoSessionIdManager">
+ <Arg>
+ <Ref id="Server"/>
+ </Arg>
+ <Set name="workerName"><Property name="jetty.nosqlSession.workerName" default="node1"/></Set>
+ <Set name="scavengePeriod"><Property name="jetty.nosqlSession.scavenge" default="1800"/></Set>
+ </New>
+ </Set>
+
+</Configure>
diff --git a/jetty-nosql/src/main/config/modules/nosql.mod b/jetty-nosql/src/main/config/modules/nosql.mod
index a4189c945b..264699cc7f 100644
--- a/jetty-nosql/src/main/config/modules/nosql.mod
+++ b/jetty-nosql/src/main/config/modules/nosql.mod
@@ -1,9 +1,32 @@
#
-# Jetty Nosql module
+# Jetty NoSql module
#
[depend]
webapp
+[files]
+maven://org.mongodb/mongo-java-driver/2.6.1|lib/nosql/mongo-java-driver-2.6.1.jar
+
[lib]
-lib/jetty-nosql-${jetty.version}.jar \ No newline at end of file
+lib/jetty-nosql-${jetty.version}.jar
+lib/nosql/*.jar
+
+[xml]
+etc/jetty-nosql.xml
+
+[license]
+The java driver for the MongoDB document-based database system is hosted on GitHub and released under the Apache 2.0 license.
+http://www.mongodb.org/
+http://www.apache.org/licenses/LICENSE-2.0.html
+
+[ini-template]
+## MongoDB SessionIdManager config
+
+## Unique identifier for this node in the cluster
+jetty.nosqlSession.workerName=node1
+
+
+## Interval in seconds between scavenging expired sessions
+jetty.nosqlSession.scavenge=1800
+

Back to the top