On Tuesday 05 April 2011 7:27:02 AM bcokee wrote:
> Hi Dan,
> 
>  I'm also interested in knowing how to set a timeout per operation. At the
> moment I only
>  know how to apply timeout per service.

The only way to do it is by modifying the HTTPConduit prior to the individual 
call to the operation on the client (and realizing that that would not be 
thread safe) or installing an interceptor early in the out chain that would 
grab the operation and do something similar.   The interceptor could just do 
something like:

msg.getExchange().getBindingOperationInfo()

to get the operation.  Then look up the timeouts you need for that, and then 
do:

msg.put(Message.CONNECTION_TIMEOUT, ..)
msg.put(Message.RECEIVE_TIMEOUT, ..)


Dan



> 
> Daniel  Kulp wrote:
> >> 2. is it possibale to set the timeout per operation basis?
> > 
> > Not in config, no.   In code, before making the call, you can grab the
> > HttpConduit and modify settings right before the call.
> 
> Just to clarify my use case. Suppose we have a service like below:
> 
> public interface SomePortType
> {
> 
>        public   SomeRS  operation1RQ( ... ) ;
>        public   SomeRS  operation2RQ( ... ) ;
>        public   SomeRS  operation3RQ( ... ) ;
> 
> }
> 
>   I want to set different receive timeouts for each operation ( e.g. 5 sec,
> 10 sec. , 15 sec. respectively)
>   Could you please give more hints as to how  this can be achieved?
>   What settings of the conduit should be modified ?
>   Is one HttpConduit enough or  one conduit per operation ?
> 
>  Regards,
>  Berns
> 
> 
> --
> View this message in context:
> http://cxf.547215.n5.nabble.com/Setting-Http-conduit-using-spring-configur
> ation-file-tp2644363p4283714.html Sent from the cxf-user mailing list
> archive at Nabble.com.

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

Reply via email to