Correct session store xml config files

This commit is contained in:
Jan Bartel 2016-04-15 11:07:54 +10:00
parent d28dffb16e
commit 9212a62d74
7 changed files with 19 additions and 6 deletions

View File

@ -8,11 +8,12 @@
<!-- Configure a factory for GCloudSessionStores -->
<!-- ===================================================================== -->
<Call name="addBean">
<Arg>
<New class="org.eclipse.jetty.server.session.GCloudSessionStoreFactory">
<Set name="gcloudConfiguration"><Ref id="gconf"/></Set>
<Set name="gracePeriod"><Property name="jetty.session.gracePeriod.seconds" default="3600" /></Set>
</New>
</Arg>
</Call>
</Configure>
</Configure>

View File

@ -17,10 +17,12 @@
<!-- Infinispan DefaultCache -->
<!-- ===================================================================== -->
<Call name="addBean">
<Arg>
<New class="org.eclipse.jetty.server.session.InfinispanSessionStoreFactory">
<Set name="cache"><Ref id="cache"/></Set>
<Set name="infinispanIdleTimeoutSec"><Property name="jetty.session.infinispanIdleTimeout.seconds" default="0" /></Set>
<Set name="gracePeriod"><Property name="jetty.session.gracePeriod.seconds" default="3600" /></Set>
</New>
</Arg>
</Call>
</Configure>
</Configure>

View File

@ -19,10 +19,12 @@
<!-- Infinispan DefaultCache -->
<!-- ===================================================================== -->
<Call name="addBean">
<Arg>
<New class="org.eclipse.jetty.server.session.InfinispanSessionStoreFactory">
<Set name="cache"><Ref id="remoteCache"/></Set>
<Set name="infinispanIdleTimeoutSec"><Property name="jetty.session.infinispanIdleTimeout.seconds" default="0" /></Set>
<Set name="gracePeriod"><Property name="jetty.session.gracePeriod.seconds" default="3600" /></Set>
</New>
</Arg>
</Call>
</Configure>
</Configure>

View File

@ -8,11 +8,13 @@
<!-- Configure a factory for MongoSessionStores -->
<!-- ===================================================================== -->
<Call name="addBean">
<Arg>
<New class="org.eclipse.jetty.server.session.MongoSessionStoreFactory">
<Set name="dbName"><Property name="jetty.session.dbName" default="HttpSessions" /></Set>
<Set name="collectionName"><Property name="jetty.session.collectionName" default="jettySessions" /></Set>
<Set name="gracePeriod"><Property name="jetty.session.gracePeriod.seconds" default="3600" /></Set>
</New>
</Arg>
</Call>
</Configure>
</Configure>

View File

@ -8,10 +8,12 @@
<!-- Configure a factory for in-memory Session objects -->
<!-- ===================================================================== -->
<Call name="addBean">
<Arg>
<New class="org.eclipse.jetty.server.session.DefaultSessionCacheFactory">
<Set name="idlePassivationTimeoutSec"><Property name="jetty.session.idlePassivationTimeout.seconds" default="0" /></Set>
<Set name="passivateOnComplete"><Property name="jetty.session.passivateOnComplete" default="false" /></Set>
</New>
</Arg>
</Call>
</Configure>

View File

@ -8,9 +8,11 @@
<!-- Configure a factory for FileSessionStores -->
<!-- ===================================================================== -->
<Call name="addBean">
<Arg>
<New class="org.eclipse.jetty.server.session.FileSessionStoreFactory">
<Set name="deleteUnrestorableFiles"><Property name="jetty.session.deleteUnrestorableFiles" default="false" /></Set>
<Set name="storeDir"><Property name="jetty.session.storeDir"/></Set>
</New>
</Arg>
</Call>
</Configure>
</Configure>

View File

@ -8,6 +8,7 @@
<!-- Configure a factory for JDBCSessionStores -->
<!-- ===================================================================== -->
<Call name="addBean">
<Arg>
<New class="org.eclipse.jetty.server.session.JDBCSessionStoreFactory">
<Set name="gracePeriod"><Property name="jetty.session.gracePeriod.seconds" default="3600" /></Set>
<Set name="databaseAdaptor">
@ -58,6 +59,7 @@
</New>
</Set>
</New>
</Arg>
</Call>
</Configure>