• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Assign Config Properties from OutSide of the War File

 
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic