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
Expand all | Collapse all

Question about Service.doThreadInvoke

  • 1.  Question about Service.doThreadInvoke

    Posted Tue September 26, 2006 05:11 PM

    Hi All,

    I have two services, service A and service B. A is a Java service, which uses ‘Service.doThreadInvoke’ to invoke B. The main purpose of this design is to increase the response time of A since B is slow.

    Question one. If service threads of the IS reach the limit, will B still be called by A? If not, will A throw an exception?

    Question two. If there is an exception in B, how can I catch and handle it?

    Can anyone help me? Thanks in advance.


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


  • 2.  RE: Question about Service.doThreadInvoke

    Posted Tue September 26, 2006 06:21 PM

    Maybe I’m missing something, but if there are no more available threads, then, no, A will not be able to spawn a separate thread for B.

    Question two has been answered here previously.

    Mark


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