[Advanced-java] Removing the loaded resourceBundle.

Nilesh Khonde nilesh.khonde at oracle.com
Mon May 26 05:53:02 2003


This is a multi-part message in MIME format.
---------------------- multipart/mixed attachment
Hi Gurus

I am using ResourceBundle to load the messages from a property file.
We support lots of languages in our product, thus these resources once
loaded into memory stays there even if not used for long time.

What I mean is lets take example of Spanish language. Suppose one user
hits the server with Spanish locale, then corresponding resource will be

loaded. And assume that after that user nobody logged in to the server
with Spanish locale for long time..may be 1 month. But still the Spanish

resource will be present in the JVM.
I think there is no any solutions to take this out of memory? (Except
making the ResourceBundle null after each request, but it is expensive
as it will lead to more IO)

It could have been nice if resourceBundle have a property called
time-out. like if resource not used for specified time then throw out of

the memory..

Thanks
Nilesh

---------------------- multipart/mixed attachment
A non-text attachment was scrubbed...
Name: nilesh.khonde.vcf
Type: text/x-vcard
Size: 164 bytes
Desc: Card for Nilesh Khonde
Url : /lists/advanced-java/attachments/20030526/41dfe62e/nilesh.khonde.vcf

---------------------- multipart/mixed attachment--