rjoshi wrote:
> Girish,
> thanks for the information about sequential mode. Until sequential
> execution is available, I am planning to implement using queue where all
>
I realized even sequential execution the way we (Frank & I) were
thinking may not satisfy your use-case, where you expect response
message from consumed service before consuming another service.
> objects are queued in the for loop and 1st service is invoked. When
> response is received, I will poll object from queue and invoke next service.
>
> One requirement I have is on certain conditions, I need to trigger @OnDone
> function call. Is there anyway to trigger let POJO-SE to trigger @OnDone
> function manually?
>
Currently OnDone is executed only when all the outstanding response
messages are received with "out", "done" or "error" status. On "error"
status, OnError method if present is executed. If POJO service itself
throws exceptions/ErroMessage/FaultMessage while executing Operation,
OnReply, OnError or OnFault, OnDone method is never called.
I am not sure exactly on condition you want to force execution of
OnDone. May be you need to send response message prematurely from your
service before receiving all response. You can even now should be able
to send FaultMessage back before all responses from consumed services
are received. Sending/throwing normal "out" message instead fault
matches your requirement?
> Thanks,
> Rohit Joshi
>
---------------------------------------------------------------------
To unsubscribe, e-mail:
[hidden email]
For additional commands, e-mail:
[hidden email]