Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Bartel2015-05-07 07:10:31 +0000
committerJan Bartel2015-05-07 07:10:31 +0000
commit532b0019cc0df9bf47b7aedcf65daf8308d2d448 (patch)
treef108a6091570240c56874d044af265a6acb8dd5c /jetty-server/src/main/config/etc/jetty-jdbc-sessions.xml
parent310940287b5d2e3f0a01bb45e9c505804afb9285 (diff)
downloadorg.eclipse.jetty.project-532b0019cc0df9bf47b7aedcf65daf8308d2d448.tar.gz
org.eclipse.jetty.project-532b0019cc0df9bf47b7aedcf65daf8308d2d448.tar.xz
org.eclipse.jetty.project-532b0019cc0df9bf47b7aedcf65daf8308d2d448.zip
466678 Make a .mod file for jdbc session management
Diffstat (limited to 'jetty-server/src/main/config/etc/jetty-jdbc-sessions.xml')
-rw-r--r--jetty-server/src/main/config/etc/jetty-jdbc-sessions.xml34
1 files changed, 34 insertions, 0 deletions
diff --git a/jetty-server/src/main/config/etc/jetty-jdbc-sessions.xml b/jetty-server/src/main/config/etc/jetty-jdbc-sessions.xml
new file mode 100644
index 0000000000..aacad8ca25
--- /dev/null
+++ b/jetty-server/src/main/config/etc/jetty-jdbc-sessions.xml
@@ -0,0 +1,34 @@
+<?xml version="1.0"?>
+<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure_9_3.dtd">
+
+<Configure id="Server" class="org.eclipse.jetty.server.Server">
+
+
+ <!-- ===================================================================== -->
+ <!-- Configure a SessionIdManager -->
+ <!-- ===================================================================== -->
+ <Set name="sessionIdManager">
+ <New id="idMgr" class="org.eclipse.jetty.server.session.JDBCSessionIdManager">
+ <Arg>
+ <Ref id="Server"/>
+ </Arg>
+ <Set name="workerName"><Property name="jetty.jdbcSession.workerName" default="node1"/></Set>
+ <Set name="scavengeInterval"><Property name="jetty.jdbcSession.scavenge" default="1800"/></Set>
+
+ <!-- ===================================================================== -->
+ <!-- Uncomment either the datasource or driver setup and configure -->
+ <!-- ===================================================================== -->
+
+ <!--
+ <Set name="DatasourceName"><Property name="jetty.jdbcSession.datasource" default="javax.sql.DataSource/default"/></Set>
+ -->
+ <!--
+ <Call name="setDriverInfo">
+ <Arg><Property name="jetty.jdbcSession.driverClass"/></Arg>
+ <Arg><Property name="jetty.jdbcSession.connectionURL"/></Arg>
+ </Call>
+ -->
+ </New>
+ </Set>
+
+</Configure>

Back to the top