-
1. Re: localization in servicemix
davestanley Oct 1, 2009 11:33 AM (in response to vvchoy)Hi Valerie,
Can you provide more details. What version of servicemix are you using and which parts in particular are you trying to localize.
Thanks
/Dave
-
2. Re: localization in servicemix
vvchoy Oct 1, 2009 1:22 PM (in response to davestanley)Hi Dave
I am using Fuse Servicemix 3.4.0.x. I would like to be able to localize log messages. Since in Servicemix, we have su and sa deployment, I am wondering what is the best way to bundle/deploy the resource properties file as well as whether there is a standard way provided by servicemix to access these resource files ?
Hopefully I can get some recommendations.
Thanks a lot
Valerie
-
3. Re: localization in servicemix
davestanley Oct 1, 2009 4:46 PM (in response to vvchoy)Hi,
As log4j is being used under the covers I think it would be a large undertaking to localize the logging in general.
It may be possible for you to localize messages logged by your own business logic by using spring's propertyPlaceHolderConfigurer. This does have some suppport for localization but I'm not sure if the locale is resolved automatically or if you would need to do some extra work to be able to resolve the right property string for the right locale.
Regards
/Dave
-
4. Re: localization in servicemix
vvchoy Oct 2, 2009 3:47 PM (in response to vvchoy)Hi Dave
OpenEsb offerent a central class Messages that allows loading of a properties file (ie. resource bundle property file) using your own specific class.
Wonder whether servicemix offers something similar ?
Thanks
Valerie