Question about Service.doThreadInvoke

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.

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.