views:

7

answers:

0

Hi, I would like to understand how the asynchronous invocation model in jax ws works. If for example I use Future invokeAsync(T msg, AsyncHandler handler) then my program can resume and when the response from the web service arrives, the result will be passed to my AsyncHandler. If I have several threads in the same program and one thread calls invokeAsync and resumes operation and immediately another thread (perhaps more) tries to also call invokeAsync to the same web service (perhaps different operation but same portType) how will this situation be handled by the framework? Will a series of POSTs go the same web service (POST for thread1, POST for thread2 etc) or after a response arrives then the next POST will be send (POST for thread1 when response arrives pass result to the callback handler and then POST for thread2?)

Thanks