I’m having some trouble with this built-in service,
when i set the input like
num = 12.34
pattern ###.##
The output is 12,34
I was expecting a . as numeric separator
I found that the locale variable from java for numeric separation is ,
(getDecimalSeparator)
wM 6.5 IS SP2 is starting as a service,
OS is MS Server 2003 with a french user
How can I configure the numeric separator
in order to obtain 12.34 as a result from NumericFormat ?
I already double check
I think it deals with the Locale used by webMethods
If you could retrieve the Locale you are currently using
public static Locale getDefault()
and retrieve the decimal Separator from
DecimalFormatSymbols.getDecimalSeparator()
you should obtain a .
When I run a java service like this, I have a ,
Do you want to override the locale-specific settings only for this built-in service or for eveything in IS that is locale-aware?
You can modify the command that starts java in your server.bat file to pass in the properties to set the locale to something other than the French locale that is set at the OS-level, but I’m not quite sure what you’re really attempting to accomplish.
java -Duser.language=en -Duser.country=US ... [I]<rest of java command line>[/i]
doesn’t change anything,
I’m keeping the same behaviour on numericFormat ,
and my test service always returns fr and , as Locale.getDefault().getLanguage() and DecimalFormatSymbols.getDecimalSeparator()
I’m start IS as a service on a W. Server 2003
IS using his own jvm 1.4.2_07
Sounds like the NT service may not be picking up the changes to your server.bat. Can you try this again when starting IS from the command line?
If those props are being read then your getLanaguage(), getCountry() and getDecimalSeparator() should no longer return the default values read from your OS locale settings. Since those settings still show their default values, the props are not being picked up.
when I start the IS using command line, it’ OK
my test service return en and .
and NumericFormat return 12.34
but when I use the service, it doesn’t take the properties
keeping fr and , and 12,34
For test server it’s OK to start from the command line,
but for the production server it’ll not be possible
How should I configure the service under windows ?
You probably need to recreate the NT Service for IS. There is a batch file in the \bin folder that can be used to remove the old one and create the new one with new parameters. Pretty sure this is covered in the Administrator’s guide, but its been awhile since I looked for this info.
That utility does not appear to be documented in the IS Administrator’s guide or the Installation Guide and searching for it on Advantage turns up zero hits. Go figure.