wood burning stoves 2.0*
The moose likes Struts and the fly likes Assign Config Properties from OutSide of the War File Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Assign Config Properties from OutSide of the War File " Watch "Assign Config Properties from OutSide of the War File " New topic
Author

Assign Config Properties from OutSide of the War File

Vijay Kumar koganti
Ranch Hand

Joined: Jan 23, 2006
Posts: 53
Hi all,
My requirement is that i want to have all the properties specific to environment(Prod, Dev,QA) go into a seperate file outside my war,for Example the properties like DB Name, DB Password, LDAP URL, LDAP Pwd, Hibernate_Dialect..etc.

Is there a way to create just one war file for three environments and some how read these properties from outside of war file?


This way I don’t need to repackage the war file when moving it from one environment to another Or if the Prod guys doesn't want to share the details to the dev Team.

FYI : Application is based on Struts2(For MVC) + Spring(For Injection) + Hibernate (ORM) + Acegi(Authentication)

Would Appreciate your thoughts on this .

Thank you


vijay kumar k.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Assign Config Properties from OutSide of the War File
 
Similar Threads
Moving JSF apps gracefully through environments
Get handle of UserRegistry or JAAS entries in WAS
Loading Property files using Struts
Best Practices - Properties files
Deployment practices for properties