webMethods

webMethods

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Doubts about locale

    Posted Mon September 15, 2003 07:16 PM

    Hi all,

    I’m facing some odd behavior when using math services.
    The locale’s IS Server I’m working on is set to PT-BR, and when I invoke any float operation with integer arguments, it returns me the decimal symbol as “.” instead of the expected “,”.
    Where IS gets information about the locale, in the O.S. configuration or it has its own rule?

    TIA


    #Flow-and-Java-services
    #webMethods
    #Integration-Server-and-ESB


  • 2.  RE: Doubts about locale

    Posted Mon September 15, 2003 08:06 PM

    The locale is determined by the JVM/OS. Search the Sun site for info on that.

    As for using the float operations, I would caution you about using them. This Ezine article points out the issues and work-arounds. [url=“wmusers.com”]wmusers.com


    #webMethods
    #Flow-and-Java-services
    #Integration-Server-and-ESB


  • 3.  RE: Doubts about locale

    Posted Tue September 16, 2003 05:16 PM

    Hi Rob,

    Unfortunately, my java skills aren’t good enough to write my own services.

    Thank you anyway.


    #Flow-and-Java-services
    #Integration-Server-and-ESB
    #webMethods


  • 4.  RE: Doubts about locale

    Posted Tue September 16, 2003 07:43 PM

    Understandable, but you shouldn’t use the float services just because you can’t personally create replacements. You will run into rounding and accuracy problems if you use the built-in services. Perhaps you can get a Java jockey to do them for you?


    #Flow-and-Java-services
    #Integration-Server-and-ESB
    #webMethods


  • 5.  RE: Doubts about locale

    Posted Tue September 16, 2003 08:31 PM

    I’ll avoid to use those services till death, you can be sure!
    Actually, I started creating the services I need based on the example I found on your article.
    There’s only one I couldn’t end:
    ‘divideDecimals’ because it has another parameter named roundingMode, and I assume that it was stronger than me.
    The explanation into java docs aren’t deep enough to make it clear in my mind. Any tips?

    TIA


    #Integration-Server-and-ESB
    #Flow-and-Java-services
    #webMethods