Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Not A Problem
-
2.4.10, 2.6.6, 2.7.4
-
None
-
Unknown
Description
http://cxf.apache.org/docs/developing-a-consumer.html says:
Request context - on the client side, the request context enables you to
set properties that affect outbound messages. Request context properties
are applied to a specific port instance and, once set, the properties
affect every subsequent operation invocation made on the port, until such
time as a property is explicitly cleared. For example, you might use a
request context property to set a connection timeout or to initialize data
for sending in a header.
Service = new Service();
Port = Service.getPort();
((BindingProvider) Port).getRequestContext().put(
BindingProviderProperties.CONNECT_TIMEOUT,
30);
((BindingProvider) Port).getRequestContext().put(
BindingProviderProperties.REQUEST_TIMEOUT,
30);
But it does not work.
See this question on mailing list:
http://mail-archives.apache.org/mod_mbox/cxf-users/201305.mbox/%3CCAH9fUpYxuZSv0H81hK9eX75a%2BF16WLjGmyLa1phZCck95bsUFA%40mail.gmail.com%3E