<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to add more properties to properties file in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-add-more-properties-to-properties-file/m-p/283026#M236156</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks so much for the tip. This works well. I like this method than going to global or scoped config as it is self contained in my webscript.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Aug 2013 20:43:30 GMT</pubDate>
    <dc:creator>vince20151</dc:creator>
    <dc:date>2013-08-30T20:43:30Z</dc:date>
    <item>
      <title>How to add more properties to properties file</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-add-more-properties-to-properties-file/m-p/283024#M236154</link>
      <description>I have a java backed webscript in alfresco (not share) that needs to connect to an external db. I like to keep the connection info (such as user, password, url) in a properties file rather than in the code. (e.g. mydb.username=admin, mydb.password=password123, etc..1. Where and what file name should</description>
      <pubDate>Thu, 29 Aug 2013 23:25:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-add-more-properties-to-properties-file/m-p/283024#M236154</guid>
      <dc:creator>vince20151</dc:creator>
      <dc:date>2013-08-29T23:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to add more properties to properties file</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-add-more-properties-to-properties-file/m-p/283025#M236155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You have several options&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. add a configuration document to your webscript. if your webscript's&amp;nbsp; description document is yourwebscript.get.desc.xml then you can add a configuration file called yourwebscript.config.xml.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Then your java-backed webscript you can get your yourwebscript.config.xml stream through :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; String configPath = getDescription().getId() + ".config.xml";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; InputStream input = this.getContainer().getSearchPath().getDocument(configPath);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2.Or you can add your config element to global or scoped Config and inject config servcie into your webscript.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I recommend the firs one&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2013 02:20:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-add-more-properties-to-properties-file/m-p/283025#M236155</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2013-08-30T02:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to add more properties to properties file</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-add-more-properties-to-properties-file/m-p/283026#M236156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks so much for the tip. This works well. I like this method than going to global or scoped config as it is self contained in my webscript.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2013 20:43:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-add-more-properties-to-properties-file/m-p/283026#M236156</guid>
      <dc:creator>vince20151</dc:creator>
      <dc:date>2013-08-30T20:43:30Z</dc:date>
    </item>
  </channel>
</rss>

