IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

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.  System.out.println

    Posted Thu July 28, 2011 12:02 PM

    Hi,

    Why does System.out.println will not work in java service?


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


  • 2.  RE: System.out.println

    Posted Thu July 28, 2011 01:39 PM

    What do you mean when you say “it will not work” ? No output in the server.log (the same when you call debugLog) ?

    When you call the System.out.println in java, it prints the string to the standard output. It’s independent of the file the debugLog uses.
    So if you want to retrieve the string, redirect the output when you launch your server.{sh|bat}

    [....]/server.sh >> whatyouwant.log

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


  • 3.  RE: System.out.println

    Posted Thu July 28, 2011 02:16 PM

    Hi,

    thanks for the reply…

    I’m not able to view the output in server.log file…what might be the reason?

    And when i run java service containing System.out.println, it is taking more time to execute. Y does simple java service containing println is taking more time?


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


  • 4.  RE: System.out.println

    Posted Thu July 28, 2011 04:38 PM

    What are you using System.out.println for? As Arnaud mentioned, it will be written to stdout by default. Depending upon your environment and how the JVM is started may be to “nowhere.”


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