You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by peppinolusuraio <ua...@libero.it> on 2009/02/12 12:01:25 UTC
CXF-BC
how can I change the default http receive timeout and connection time out of
the CXF-BC ?
Can I do it in my xbean?
In CXF I would do:
// change http receive timeout and connection timeout
Client client = ClientProxy.getClient(port);
Conduit conduit = client.getConduit();
HTTPClientPolicy policy = ((HTTPConduit) conduit).getClient();
if (policy == null) {
policy = new HTTPClientPolicy();
((HTTPConduit) conduit).setClient(policy);
}
policy.setReceiveTimeout(300000000);
policy.setConnectionTimeout(300000000);
--
View this message in context: http://www.nabble.com/CXF-BC-tp21973884p21973884.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: CXF-BC
Posted by Lars Heinemann <lh...@apache.org>.
Specify at the CXFconsumer endpoint in the xbean.xml: timeout="0"
Regards
Lars
2009/2/12 peppinolusuraio <ua...@libero.it>:
>
> how can I change the default http receive timeout and connection time out of
> the CXF-BC ?
> Can I do it in my xbean?
> In CXF I would do:
>
> // change http receive timeout and connection timeout
> Client client = ClientProxy.getClient(port);
> Conduit conduit = client.getConduit();
> HTTPClientPolicy policy = ((HTTPConduit) conduit).getClient();
> if (policy == null) {
> policy = new HTTPClientPolicy();
> ((HTTPConduit) conduit).setClient(policy);
> }
> policy.setReceiveTimeout(300000000);
> policy.setConnectionTimeout(300000000);
> --
> View this message in context: http://www.nabble.com/CXF-BC-tp21973884p21973884.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>
--
http://lhein.blogspot.com
Re: CXF-BC
Posted by Freeman Fang <fr...@gmail.com>.
You need a cxf spring configuration file (let's say http-client.xml),
where you can specify HTTPClientPolicy parameters for http conduit, then
set this file for cxf bc provider xbean.xml like
busCfg="http-client.xml"
Freeman
peppinolusuraio wrote:
> how can I change the default http receive timeout and connection time out of
> the CXF-BC ?
> Can I do it in my xbean?
> In CXF I would do:
>
> // change http receive timeout and connection timeout
> Client client = ClientProxy.getClient(port);
> Conduit conduit = client.getConduit();
> HTTPClientPolicy policy = ((HTTPConduit) conduit).getClient();
> if (policy == null) {
> policy = new HTTPClientPolicy();
> ((HTTPConduit) conduit).setClient(policy);
> }
> policy.setReceiveTimeout(300000000);
> policy.setConnectionTimeout(300000000);
>