The moose likes Java in General and the fly likes ResourceBundle Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "ResourceBundle" Watch "ResourceBundle" New topic


prasanna pati
Ranch Hand

Joined: Jan 29, 2005
Posts: 46
what is ResourceBundle ? what is locale specific object ? what is the difference between propertyresourcebundle & list.. ? what we can do with these ResourceBundle s? when they r needed ?
Roger Chung-Wee
Ranch Hand

Joined: Sep 29, 2002
Posts: 1683
I load property files into a ResourceBundle for EJB applications as the EJB spec forbids an enterprise bean to use the package to access files and directories in the file system.

SCJP 1.4, SCWCD 1.3, SCBCD 1.3
Selva Varadhan

Joined: Aug 20, 2005
Posts: 14
Resource bundles nothing but key/value pairs. Java contains ResourceBundle Abstract base class and two subclasses called ListResourceBundle and PropertyResourceBundle to handle these key/value pair Concepts.
Locale specific object coming in to the picture when, you want to design one application, specific to the particular Language or Country.
ListResourceBundle packs key/value pair in a separate class file but PropertyResourceBudle packs key/value pair in a separate ´┐Ż. properties´┐Ż text file. for more detailed information go through this sun site

I hope this will give what u expected.
prasanna pati
Ranch Hand

Joined: Jan 29, 2005
Posts: 46
thanks Roger Chung-Wee & Selva Varadhan

thanks for help & keep it up .


I agree. Here's the link:
subject: ResourceBundle
It's not a secret anymore!