• 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

Properties file in WAS?? URGENT!!

 
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I just wanted to confirm that the application specific properties file are kept in the "properties" folder of WAS?
Is there any other way also?
 
Gaurav Jain
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am using WAS 5.1
 
Ranch Hand
Posts: 374
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Gaurav Jain:
I just wanted to confirm that the application specific properties file are kept in the "properties" folder of WAS?
Is there any other way also?



Keep .properties files in your WAR file if at all possible, i.e. in the same classpath with your class files. Avoid dumping files in the WAS folders whenever possible, as WAS has a tendency to swallow them or share them with multiple apps (which may or may not be the desired effect).

If you're building with WSAD, you can keep them in the Java Source folder with the right package name and it will automagically copy them to the WEB-INF\classes directory when you build the project.

Caveat: if the properties file matches one that WAS already uses and has higher on its classpath, your file will NOT be the one loaded.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic