{"id":3633,"date":"2014-03-29T07:18:02","date_gmt":"2014-03-29T07:18:02","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/29\/gwt-safe-place-for-properties-file-with-db-variables-collection-of-common-programming-errors\/"},"modified":"2014-03-29T07:18:02","modified_gmt":"2014-03-29T07:18:02","slug":"gwt-safe-place-for-properties-file-with-db-variables-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/29\/gwt-safe-place-for-properties-file-with-db-variables-collection-of-common-programming-errors\/","title":{"rendered":"GWT: Safe place for properties file with db variables-Collection of common programming errors"},"content":{"rendered":"<p>I have a file <strong><em>variables.properties<\/em><\/strong> in my GWT application inside the <strong><em>war folder<\/em><\/strong>. The file contains a jdbc string, username and password, hence I would not like to see it on the client side in any way.<\/p>\n<p><strong>My question<\/strong>: Is <em>variables.properties<\/em> somehow integrated into client side code at runtime when placed inside the <em>war folder<\/em> or is it safe to place it there?<\/p>\n<p>If it is not, where should I put it? I read the file with this code:<\/p>\n<pre><code>variables = new Properties();\nBufferedInputStream stream = new BufferedInputStream(new FileInputStream(\"variables.properties\"));\nvariables.load(stream);\nstream.close();\n<\/code><\/pre>\n<p>Thanks in advance!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have a file variables.properties in my GWT application inside the war folder. The file contains a jdbc string, username and password, hence I would not like to see it on the client side in any way. My question: Is variables.properties somehow integrated into client side code at runtime when placed inside the war folder [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3633","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3633","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=3633"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3633\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=3633"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=3633"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=3633"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}