File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Websphere and the fly likes Properties file in WAS?? URGENT!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "Properties file in WAS?? URGENT!!" Watch "Properties file in WAS?? URGENT!!" New topic
Author

Properties file in WAS?? URGENT!!

Gaurav Jain
Ranch Hand

Joined: Mar 11, 2004
Posts: 108
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

Joined: Mar 11, 2004
Posts: 108
I am using WAS 5.1
David Hibbs
Ranch Hand

Joined: Dec 19, 2002
Posts: 374
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.


"Write beautiful code; then profile that beautiful code and make little bits of it uglier but faster." --The JavaPerformanceTuning.com team, Newsletter 039.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Properties file in WAS?? URGENT!!
 
Similar Threads
Common resource for all configurable parameters.
Replace words in a file by reading a properties file
How not to hard-code file location in java?
JAD File size
can the state of a checkbox be saved