Skip to Main Content

Java Programming

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!

getResourceAsStream always returns cached resourse

807606Apr 12 2007
Hi,

I'm trying to use
properties.load(getResourceAsStream("properites.ini")) 
to load the properties in my application. The problem I'm running against is that even after I've made a change to "properites.ini", I still get the old version of the file.

As far as I can tell getResourceAsStream caches the data somewhere, so the updates become not available till you restart the application.

Can anyone suggest how to disable this cache, or how to alternatively load properties? Shall I use a different class loader, which doesn't cache resources?

Thanks,
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 10 2007
Added on Apr 12 2007
0 comments
319 views