Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / JavaBeans / November 2003

Tip: Looking for answers? Try searching our database.

Localisation of ResourceBundle within EJB Container fails

Thread view: 
Stefan Heckler - 10 Nov 2003 18:45 GMT
Hi ,
using Jboss 3.2.1 and JDK 1.4.2_02.
The Localisation of resourceBundles fails within the container
(EntityBean or SessionBean).

Example: a class within the Jboss/server/<config>/lib with name
<package>/myBundle_de_DE_myVariation exists.

ResourceBundle rb = null;
rb = ResourceBundle.getBundle("<package>/myBundle", new Locale("de",
"DE", "myVariation"));

rb.getLocale().getLanguage();

this deliveres an empty String within the container and "de" out of
the container.

Help!!  Is this an error or is this not possible within the container?

Thanks
Stefan
Marek Lange - 11 Nov 2003 19:35 GMT
Stefan Heckler schrieb:

> Hi ,
> using Jboss 3.2.1 and JDK 1.4.2_02.
[quoted text clipped - 14 lines]
>
> Help!!  Is this an error or is this not possible within the container?

Please have a look here:

http://www.jboss.org/thread.jsp?forum=50&thread=1340&message=3806348&q=ResourceB
undle.getBundle#3806348


-marek


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.