On Friday, November 18, 2011 4:59:35 PM Andrei Shakirin wrote:
> Hi,
> 
> One transport specific question: are there any way to recognize
> communication pattern (one-way, request-response) from transport
> destination at the time when message is received from the network?

No.   You pretty much have to get at least as far as the initial parsing.


> Use case: custom transport should send additional confirmation in case of
> one way operations, but communication pattern cannot be recognized from
> incoming message. The question is can destination access implementation
> class or service interface to check @OneWay annotation for corresponded
> method? Or is there other solution here?

The OneWayProcessorInterceptor will callback on your destination once it knows 
that the operation is a OneWay.   Thus, at that point, you can handle  
whatever cleanup options and such are necessary (or, in the case of HTTP, sent 
the 202).   This occurs  before the call to the service method.


-- 
Daniel Kulp
[email protected] - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com

Reply via email to