Return-Path: Delivered-To: apmail-incubator-cxf-user-archive@locus.apache.org Received: (qmail 17405 invoked from network); 4 Sep 2007 02:47:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Sep 2007 02:47:23 -0000 Received: (qmail 13951 invoked by uid 500); 4 Sep 2007 02:47:18 -0000 Delivered-To: apmail-incubator-cxf-user-archive@incubator.apache.org Received: (qmail 13914 invoked by uid 500); 4 Sep 2007 02:47:17 -0000 Mailing-List: contact cxf-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cxf-user@incubator.apache.org Delivered-To: mailing list cxf-user@incubator.apache.org Received: (qmail 13905 invoked by uid 99); 4 Sep 2007 02:47:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Sep 2007 19:47:17 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ning.jiang@iona.com designates 12.170.54.180 as permitted sender) Received: from [12.170.54.180] (HELO amer-mx1.iona.com) (12.170.54.180) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Sep 2007 02:47:06 +0000 X-IronPort-AV: E=Sophos;i="4.20,203,1186372800"; d="scan'208";a="4908878" Received: from amer-ems1.ionaglobal.com ([10.65.6.25]) by amer-mx1.iona.com with ESMTP; 03 Sep 2007 22:46:45 -0400 Received: from [10.129.9.192] ([10.129.9.192]) by amer-ems1.IONAGLOBAL.COM with Microsoft SMTPSVC(6.0.3790.1830); Mon, 3 Sep 2007 22:46:44 -0400 Message-ID: <46DCC711.8080400@iona.com> Date: Tue, 04 Sep 2007 10:46:41 +0800 From: Willem Jiang User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: cxf-user@incubator.apache.org Subject: Re: Setting the timeout on the client side References: <0AC01119238E2F45B97D59D20D48A7F50280E6E3@srv-grp-s15.dev.atos.fr> In-Reply-To: <0AC01119238E2F45B97D59D20D48A7F50280E6E3@srv-grp-s15.dev.atos.fr> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 04 Sep 2007 02:46:44.0746 (UTC) FILETIME=[D49996A0:01C7EE9D] X-Virus-Checked: Checked by ClamAV on apache.org Hi CXF will load the cxf.xml as the default configuration file from the class path. If your configuration file's name is services.xml you need to specify it with java command line option -Dcxf.config.file=some_other_config.xml or load the configuration file with SpringBusFactory first. Here are the code snap Bus bus = new SpringBusFactory().createBus(configFileURL, true)); BusFactory.setDefaultBus(bus); BusFactory.setThreadDefaultBus(bus); You can also find some useful information from CXF wiki [1], I also write a doc about CXF bus[1] , but it is chinese , you may use google translate to read about it[3]. [1]http://cwiki.apache.org/CXF20DOC/configuration.html [2]http://willem.bokeland.com/blog/794/6089/2007/06/24/207642 [3]http://www.google.com/translate?u=http%3A%2F%2Fwillem.bokeland.com%2Fblog%2F794%2F6089%2F2007%2F06%2F24%2F207642&langpair=zh%7Cen&hl=en&ie=UTF8 Willem. Verachten Bruno wrote: > Hi, > > >> Please take a look at the CXF 2.0 user doc :) >> http://cwiki.apache.org/CXF20DOC/client-http-transport.html >> > Sorry, I have read this doc and didn't see this info. :-/ > > >> If you want all the http-conduit with same client policy, you >> could specify the conduit name like this, > name="*.http-conduit"> ... >> > I put > MaxRetransmits="3" > ConnectionTimeout="60000" > ReceiveTimeout="60000" > AllowChunking="true" /> > in services.xml, which is located in a directory > referenced in the classpath. > I still have errors with the sending of big messages; I got an error 32s > after the beginning of the call. > I'm sure I missed something. Is the services.xml read by the client? > > Thanks, > > Bruno Verachten > >