This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes Other Application Frameworks and the fly likes How to Externalize properties outside WAR file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "How to Externalize properties outside WAR file" Watch "How to Externalize properties outside WAR file" New topic
Author

How to Externalize properties outside WAR file

Sarin Kuraganti
Greenhorn

Joined: Sep 04, 2003
Posts: 24
Hi All,

I am trying to externalize the properties outside of a war file as this is an absolute necessity for our application. I found a way in the Spring forum as described below, but that doesn't seem to be working. Can you please let me know how to externalize properties outside of the war file and still refer to those properties in web.xml, applicationContext.xml and XXX-servlet.xml? Thanks in advance for any help or pointers.

I'm using Tomcat 5.5.27 and Spring 2.5

Here's what I've found:




Then in my Spring bean files, I extract the value from JNDI and define and configure the PropertyPlaceholderConfigurer as such:


 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to Externalize properties outside WAR file
 
It's not a secret anymore!