Hi,
You can create a customer interceptor for client outgoing chain at
early stage, in your customer interceptor do something like
msg.getExchange().getBindingOperationInfo()
to determine the operation name
then do
msg.put(Message.CONNECTION_TIMEOUT, "value_you_want")
msg.put(Message.RECEIVE_TIMEOUT, "value_you_want")
per the operation name.
Freeman
On 2011-7-29, at 上午5:36, mtuli wrote:
I am using spring config file to invoke cxf webservics.
<http-conf:conduit name="*.http-conduit">
<http-conf:client
Connection="Keep-Alive"
AllowChunking="false"
ConnectionTimeout="@conn_timeout@"
ReceiveTimeout="@rec_timeout@"
AutoRedirect="true" />
</http-conf:conduit>
I wanted to set this timeout seperately for
operation1
operation2
..
--
View this message in context:
http://cxf.547215.n5.nabble.com/Interceptor-For-setting-HTTPTimeout-for-individal-operation-tp4644135p4644323.html
Sent from the cxf-user mailing list archive at Nabble.com.
---------------------------------------------
Freeman Fang
FuseSource
Email:[email protected]
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com