466669 Add nosql.mod into jetty distro

This commit is contained in:
Jan Bartel 2015-05-07 16:12:50 +10:00
parent e2c7499bae
commit dbf4b2d72d
3 changed files with 49 additions and 2 deletions

View File

@ -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>

View File

@ -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>

View File

@ -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
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