<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	>
<channel>
	<title>Comments on: 6 Tips for Managing Property Files with Spring</title>
	<atom:link href="http://www.summa-tech.com/blog/2009/04/20/6-tips-for-managing-property-files-with-spring/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.summa-tech.com/blog/2009/04/20/6-tips-for-managing-property-files-with-spring/</link>
	<description>Summa Blog</description>
	<pubDate>Wed, 08 Feb 2012 05:26:49 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: shasr</title>
		<link>http://www.summa-tech.com/blog/2009/04/20/6-tips-for-managing-property-files-with-spring/comment-page-1/#comment-3752</link>
		<dc:creator>shasr</dc:creator>
		<pubDate>Mon, 30 Jan 2012 15:41:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.summa-tech.com/blog/?p=659#comment-3752</guid>
		<description>Hi Ben...Thank you so much for this wonderful article.

Joshua , This link may be helpful for you 

https://jira.springsource.org/browse/SPR-3030</description>
		<content:encoded><![CDATA[<p>Hi Ben&#8230;Thank you so much for this wonderful article.</p>
<p>Joshua , This link may be helpful for you </p>
<p><a href="https://jira.springsource.org/browse/SPR-3030" onclick="javascript:pageTracker._trackPageview('/outbound/comment/https://jira.springsource.org/browse/SPR-3030');" rel="nofollow">https://jira.springsource.org/browse/SPR-3030</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Keny</title>
		<link>http://www.summa-tech.com/blog/2009/04/20/6-tips-for-managing-property-files-with-spring/comment-page-1/#comment-3741</link>
		<dc:creator>Keny</dc:creator>
		<pubDate>Wed, 25 Jan 2012 08:38:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.summa-tech.com/blog/?p=659#comment-3741</guid>
		<description>(bean id="placeholderConfig")

		class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer")

		(property name="location"

value="file:${/home/dev06/Java_Works/filemanage}/Configuration.properties" /)

	(/bean)</description>
		<content:encoded><![CDATA[<p>(bean id=&#8221;placeholderConfig&#8221;)</p>
<p>		class=&#8221;org.springframework.beans.factory.config.PropertyPlaceholderConfigurer&#8221;)</p>
<p>		(property name=&#8221;location&#8221;</p>
<p>value=&#8221;file:${/home/dev06/Java_Works/filemanage}/Configuration.properties&#8221; /)</p>
<p>	(/bean)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Keny</title>
		<link>http://www.summa-tech.com/blog/2009/04/20/6-tips-for-managing-property-files-with-spring/comment-page-1/#comment-3740</link>
		<dc:creator>Keny</dc:creator>
		<pubDate>Wed, 25 Jan 2012 08:33:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.summa-tech.com/blog/?p=659#comment-3740</guid>
		<description>well i am sorry i dont see my code, that is why giving once again 





	</description>
		<content:encoded><![CDATA[<p>well i am sorry i dont see my code, that is why giving once again</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Keny</title>
		<link>http://www.summa-tech.com/blog/2009/04/20/6-tips-for-managing-property-files-with-spring/comment-page-1/#comment-3739</link>
		<dc:creator>Keny</dc:creator>
		<pubDate>Wed, 25 Jan 2012 08:28:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.summa-tech.com/blog/?p=659#comment-3739</guid>
		<description>Thanks Ben,its really helpfull

As i want to keep my .properties file out side src folder(to exclude it from jac)

now i gave a code of 


		
	
(filemanage is prjct name)
here i am getting an exception of could nt load properties nested exception

did i give anything wrong here

Any help will be appreciated 

Thanks</description>
		<content:encoded><![CDATA[<p>Thanks Ben,its really helpfull</p>
<p>As i want to keep my .properties file out side src folder(to exclude it from jac)</p>
<p>now i gave a code of </p>
<p>(filemanage is prjct name)<br />
here i am getting an exception of could nt load properties nested exception</p>
<p>did i give anything wrong here</p>
<p>Any help will be appreciated </p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Northrop</title>
		<link>http://www.summa-tech.com/blog/2009/04/20/6-tips-for-managing-property-files-with-spring/comment-page-1/#comment-3693</link>
		<dc:creator>Ben Northrop</dc:creator>
		<pubDate>Fri, 30 Dec 2011 16:06:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.summa-tech.com/blog/?p=659#comment-3693</guid>
		<description>Thanks everyone for the feedback!  I'm glad this post has been helpful.

Also, I'm sorry (Nagababu, etc.) that I haven't replied to specific questions.  Maybe StackOverflow would be a better forum for quicker feedback?  Thanks again.</description>
		<content:encoded><![CDATA[<p>Thanks everyone for the feedback!  I&#8217;m glad this post has been helpful.</p>
<p>Also, I&#8217;m sorry (Nagababu, etc.) that I haven&#8217;t replied to specific questions.  Maybe StackOverflow would be a better forum for quicker feedback?  Thanks again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nagababu</title>
		<link>http://www.summa-tech.com/blog/2009/04/20/6-tips-for-managing-property-files-with-spring/comment-page-1/#comment-3691</link>
		<dc:creator>Nagababu</dc:creator>
		<pubDate>Wed, 28 Dec 2011 07:53:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.summa-tech.com/blog/?p=659#comment-3691</guid>
		<description>hey ben,
Can we configure the application-config-file based on user selection in GUI lavel.
for example if i have combo box with some specified options like 1,2,3
if i select 1 our application use the configfile1 to connect db

please give the reply as soon as possible.</description>
		<content:encoded><![CDATA[<p>hey ben,<br />
Can we configure the application-config-file based on user selection in GUI lavel.<br />
for example if i have combo box with some specified options like 1,2,3<br />
if i select 1 our application use the configfile1 to connect db</p>
<p>please give the reply as soon as possible.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nik</title>
		<link>http://www.summa-tech.com/blog/2009/04/20/6-tips-for-managing-property-files-with-spring/comment-page-1/#comment-3632</link>
		<dc:creator>Nik</dc:creator>
		<pubDate>Mon, 05 Dec 2011 09:15:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.summa-tech.com/blog/?p=659#comment-3632</guid>
		<description>Hey, Ben!
You made my day! (or two)
Thank you very much!

Maybe it will be useful for someone.
If you want to transfer you property from main argument (System[] args) to spring application context xml file, do following:
1. in your xml file use your property
Example:
(bean ...)
(property name="logFileName" value="${my.env}" /)
(/bean)
2. in main() add this line
System.setProperty("my.env", args[0]);
3. Done! It was easy.

Attension: On next launch of program, if you delete setProperty("my.env... line, this property will be null.</description>
		<content:encoded><![CDATA[<p>Hey, Ben!<br />
You made my day! (or two)<br />
Thank you very much!</p>
<p>Maybe it will be useful for someone.<br />
If you want to transfer you property from main argument (System[] args) to spring application context xml file, do following:<br />
1. in your xml file use your property<br />
Example:<br />
(bean &#8230;)<br />
(property name=&#8221;logFileName&#8221; value=&#8221;${my.env}&#8221; /)<br />
(/bean)<br />
2. in main() add this line<br />
System.setProperty(&#8221;my.env&#8221;, args[0]);<br />
3. Done! It was easy.</p>
<p>Attension: On next launch of program, if you delete setProperty(&#8221;my.env&#8230; line, this property will be null.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: How to access Environment Variables in the Spring IoC Configuration &#171; Software Musings</title>
		<link>http://www.summa-tech.com/blog/2009/04/20/6-tips-for-managing-property-files-with-spring/comment-page-1/#comment-3624</link>
		<dc:creator>How to access Environment Variables in the Spring IoC Configuration &#171; Software Musings</dc:creator>
		<pubDate>Thu, 01 Dec 2011 20:02:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.summa-tech.com/blog/?p=659#comment-3624</guid>
		<description>[...] more in-depth look at property files can be found here. Share this:TwitterFacebookEmailPrintRedditDiggLinkedInStumbleUponLike this:LikeBe the first to [...]</description>
		<content:encoded><![CDATA[<p>[...] more in-depth look at property files can be found here. Share this:TwitterFacebookEmailPrintRedditDiggLinkedInStumbleUponLike this:LikeBe the first to [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aneesh Sebastian</title>
		<link>http://www.summa-tech.com/blog/2009/04/20/6-tips-for-managing-property-files-with-spring/comment-page-1/#comment-3599</link>
		<dc:creator>Aneesh Sebastian</dc:creator>
		<pubDate>Mon, 14 Nov 2011 08:34:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.summa-tech.com/blog/?p=659#comment-3599</guid>
		<description>Finally what is the conclusion of dynamic property binding in spring3? Any one got solution? My application needs to refer some property files on login action rather than application start up.Please let me know if any of you has a solution.</description>
		<content:encoded><![CDATA[<p>Finally what is the conclusion of dynamic property binding in spring3? Any one got solution? My application needs to refer some property files on login action rather than application start up.Please let me know if any of you has a solution.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jasper</title>
		<link>http://www.summa-tech.com/blog/2009/04/20/6-tips-for-managing-property-files-with-spring/comment-page-1/#comment-3582</link>
		<dc:creator>Jasper</dc:creator>
		<pubDate>Sun, 30 Oct 2011 09:11:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.summa-tech.com/blog/?p=659#comment-3582</guid>
		<description>Can anyone PLEASE help me with this question:

http://stackoverflow.com/questions/7940452/spring-application-context-not-able-to-load-property-placeholder-properties</description>
		<content:encoded><![CDATA[<p>Can anyone PLEASE help me with this question:</p>
<p><a href="http://stackoverflow.com/questions/7940452/spring-application-context-not-able-to-load-property-placeholder-properties" onclick="javascript:pageTracker._trackPageview('/outbound/comment/http://stackoverflow.com/questions/7940452/spring-application-context-not-able-to-load-property-placeholder-properties');" rel="nofollow">http://stackoverflow.com/questions/7940452/spring-application-context-not-able-to-load-property-placeholder-properties</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Asif</title>
		<link>http://www.summa-tech.com/blog/2009/04/20/6-tips-for-managing-property-files-with-spring/comment-page-1/#comment-3546</link>
		<dc:creator>Asif</dc:creator>
		<pubDate>Sun, 09 Oct 2011 06:29:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.summa-tech.com/blog/?p=659#comment-3546</guid>
		<description>Hello Ben, thanks for this great help article. Can you please suggest something about my below problem. I was trying to load the environment variable from another property file.


I am try to do as below. Does this have any problem? Although I get the error that ${app.env}.properties is not found why is this so. Thanks.




















The env.properties file has this
app.env=app.test</description>
		<content:encoded><![CDATA[<p>Hello Ben, thanks for this great help article. Can you please suggest something about my below problem. I was trying to load the environment variable from another property file.</p>
<p>I am try to do as below. Does this have any problem? Although I get the error that ${app.env}.properties is not found why is this so. Thanks.</p>
<p>The env.properties file has this<br />
app.env=app.test</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kurosaki</title>
		<link>http://www.summa-tech.com/blog/2009/04/20/6-tips-for-managing-property-files-with-spring/comment-page-1/#comment-3507</link>
		<dc:creator>Kurosaki</dc:creator>
		<pubDate>Sat, 17 Sep 2011 18:04:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.summa-tech.com/blog/?p=659#comment-3507</guid>
		<description>Hi , cool , please can you make exmaple of any scenrio/option  you mentioned using Spring 3 ?
encrypt  part wasn't so clear ,
and genral question , why to use properties file at all ? it's just another file , we can use Spring 3 XML property definition and use EL expression for example .... and why to make more than 1 file ? why not merge all into 1 file? 
Thanks</description>
		<content:encoded><![CDATA[<p>Hi , cool , please can you make exmaple of any scenrio/option  you mentioned using Spring 3 ?<br />
encrypt  part wasn&#8217;t so clear ,<br />
and genral question , why to use properties file at all ? it&#8217;s just another file , we can use Spring 3 XML property definition and use EL expression for example &#8230;. and why to make more than 1 file ? why not merge all into 1 file?<br />
Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Abdulkadir</title>
		<link>http://www.summa-tech.com/blog/2009/04/20/6-tips-for-managing-property-files-with-spring/comment-page-1/#comment-3504</link>
		<dc:creator>Abdulkadir</dc:creator>
		<pubDate>Fri, 16 Sep 2011 07:28:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.summa-tech.com/blog/?p=659#comment-3504</guid>
		<description>Thank you very much, you saved my day.</description>
		<content:encoded><![CDATA[<p>Thank you very much, you saved my day.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: java guy</title>
		<link>http://www.summa-tech.com/blog/2009/04/20/6-tips-for-managing-property-files-with-spring/comment-page-1/#comment-3489</link>
		<dc:creator>java guy</dc:creator>
		<pubDate>Mon, 29 Aug 2011 19:27:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.summa-tech.com/blog/?p=659#comment-3489</guid>
		<description>Thanks, you made my day * 2</description>
		<content:encoded><![CDATA[<p>Thanks, you made my day * 2</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alsky</title>
		<link>http://www.summa-tech.com/blog/2009/04/20/6-tips-for-managing-property-files-with-spring/comment-page-1/#comment-3428</link>
		<dc:creator>alsky</dc:creator>
		<pubDate>Sat, 16 Jul 2011 18:44:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.summa-tech.com/blog/?p=659#comment-3428</guid>
		<description>Thank you mate, you made my day.</description>
		<content:encoded><![CDATA[<p>Thank you mate, you made my day.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rippon</title>
		<link>http://www.summa-tech.com/blog/2009/04/20/6-tips-for-managing-property-files-with-spring/comment-page-1/#comment-3371</link>
		<dc:creator>Rippon</dc:creator>
		<pubDate>Wed, 15 Jun 2011 09:37:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.summa-tech.com/blog/?p=659#comment-3371</guid>
		<description>Sorry guys the code
 &lt;code&gt;file:///c:/datasource.properties&lt;/code&gt; works fine and I Am able to load the properties external to war
I had messed some other thing that was causing this not working.</description>
		<content:encoded><![CDATA[<p>Sorry guys the code<br />
 <code>file:///c:/datasource.properties</code> works fine and I Am able to load the properties external to war<br />
I had messed some other thing that was causing this not working.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rippon</title>
		<link>http://www.summa-tech.com/blog/2009/04/20/6-tips-for-managing-property-files-with-spring/comment-page-1/#comment-3370</link>
		<dc:creator>Rippon</dc:creator>
		<pubDate>Wed, 15 Jun 2011 09:31:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.summa-tech.com/blog/?p=659#comment-3370</guid>
		<description>Sorry Guys ,I wasnt using code tags which caused my code not displaying.Code I tried was
&lt;code&gt;&#60;/code</description>
		<content:encoded><![CDATA[<p>Sorry Guys ,I wasnt using code tags which caused my code not displaying.Code I tried was<br />
<code>&lt;/code</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rippon</title>
		<link>http://www.summa-tech.com/blog/2009/04/20/6-tips-for-managing-property-files-with-spring/comment-page-1/#comment-3369</link>
		<dc:creator>Rippon</dc:creator>
		<pubDate>Wed, 15 Jun 2011 09:29:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.summa-tech.com/blog/?p=659#comment-3369</guid>
		<description>sorry the code above is 
</description>
		<content:encoded><![CDATA[<p>sorry the code above is</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rippon</title>
		<link>http://www.summa-tech.com/blog/2009/04/20/6-tips-for-managing-property-files-with-spring/comment-page-1/#comment-3368</link>
		<dc:creator>Rippon</dc:creator>
		<pubDate>Wed, 15 Jun 2011 09:23:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.summa-tech.com/blog/?p=659#comment-3368</guid>
		<description>Thanks for the article.
But I tried reading the properties from the disk e.g If I want to load the properties from C:\projects
I tried using   

But it is not working..
Any help will be appreciated.</description>
		<content:encoded><![CDATA[<p>Thanks for the article.<br />
But I tried reading the properties from the disk e.g If I want to load the properties from C:\projects<br />
I tried using   </p>
<p>But it is not working..<br />
Any help will be appreciated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joshua Smith</title>
		<link>http://www.summa-tech.com/blog/2009/04/20/6-tips-for-managing-property-files-with-spring/comment-page-1/#comment-3320</link>
		<dc:creator>Joshua Smith</dc:creator>
		<pubDate>Wed, 25 May 2011 15:41:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.summa-tech.com/blog/?p=659#comment-3320</guid>
		<description>The blog software ate my XML. I've posted the snippets here:

http://www.rationalpi.com/spring/snippetfromContextDotXmlFile.txt

http://www.rationalpi.com/spring/snippetfromApplicationContext.txt</description>
		<content:encoded><![CDATA[<p>The blog software ate my XML. I&#8217;ve posted the snippets here:</p>
<p><a href="http://www.rationalpi.com/spring/snippetfromContextDotXmlFile.txt" onclick="javascript:pageTracker._trackPageview('/outbound/comment/http://www.rationalpi.com/spring/snippetfromContextDotXmlFile.txt');" rel="nofollow">http://www.rationalpi.com/spring/snippetfromContextDotXmlFile.txt</a></p>
<p><a href="http://www.rationalpi.com/spring/snippetfromApplicationContext.txt" onclick="javascript:pageTracker._trackPageview('/outbound/comment/http://www.rationalpi.com/spring/snippetfromApplicationContext.txt');" rel="nofollow">http://www.rationalpi.com/spring/snippetfromApplicationContext.txt</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

