Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Where to place properties files and WAR

user8742475Nov 10 2009 — edited Nov 11 2009
I have a properties file called context.properties under WEB-INF directory in 11g JDeveloper. When I tried to read it from a Java program as below

ResourceBundle rb = ResourceBundle.getBundle("context");

I always got the throwMissingResourceException.

Is the WEB-INF the correct place to put properties files? How do we make it so the files are readable from a java program?

Thanks,

Andy
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 9 2009
Added on Nov 10 2009
3 comments
865 views