Locale with Services 2006-11-14 - By Sales ShiftAce
Back I have been trying to get Locale to work correctly with Tomcat Services.
I am in Australia and my Windows XP was originally installed for Region, Australia.
To test Resource Bundles, I have changed the Windows Region to English - US.
I am using the line: Locale currentLocale = Locale.getDefault();
When using Windows Services, (tomcat5w.exe), I cannot get the default Locale correctly as en_US, but return en_AU.
tomcat6w.exe does the same.
I have re-installed Tomcat when the Windows Region has been set to US.
A small Java test program returns the default Locale as en_US correctly, so the JRE is correctly reading the Region.
When my Tomcat is run in Console mode, it correctly returns en_US. The same code and xml's returns en_AU when run as a Windows Service.
I do not want to 'set' the Locale but to merely test how a client's software would react when the application is downloaded in another country.
How can I use the Tomcat Service to return the current Locale and not the original Locale as the default?
Max
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ To start a new topic, e-mail: users@(protected) To unsubscribe, e-mail: users-unsubscribe@(protected) For additional commands, e-mail: users-help@(protected)
|
|