changeset 1034:b7d5c70e0251

Add username/password init params to web.xml. Reviewed-by: omajid Review-thread: http://icedtea.classpath.org/pipermail/thermostat/2013-March/006083.html
author Severin Gehwolf <sgehwolf@redhat.com>
date Mon, 18 Mar 2013 15:58:38 +0100
parents 29e79f1daae2
children e7725b744e57
files web/war/src/main/webapp/WEB-INF/web.xml
diffstat 1 files changed, 20 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/web/war/src/main/webapp/WEB-INF/web.xml	Fri Mar 15 17:43:38 2013 -0400
+++ b/web/war/src/main/webapp/WEB-INF/web.xml	Mon Mar 18 15:58:38 2013 +0100
@@ -20,6 +20,26 @@
       <param-name>storage.endpoint</param-name>
       <param-value>mongodb://127.0.0.1:27518</param-value>
     </init-param>
+    <!-- Credentials to use for connecting to the backing storage
+         (currently mongodb). Uncomment the following two blocks in
+         order to use this username/password for the connection. -->
+
+    <!-- Username to use for connecting to the backing storage
+         implementation. -->
+    <!--
+    <init-param>
+      <param-name>storage.username</param-name>
+      <param-value>thermostat-webservice</param-value>
+    </init-param>
+    -->
+    <!-- Password to use for connecting to the backing storage
+         implementation -->
+    <!--
+    <init-param>
+      <param-name>storage.password</param-name>
+      <param-value>supersecrit</param-value>
+    </init-param>
+    -->
     <!-- The timeout of the token manager in ms -->
     <init-param>
       <param-name>token-manager-timeout</param-name>