Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CC13E917A for ; Thu, 9 Feb 2012 16:13:33 +0000 (UTC) Received: (qmail 32055 invoked by uid 500); 9 Feb 2012 16:13:33 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 31965 invoked by uid 500); 9 Feb 2012 16:13:32 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 31957 invoked by uid 99); 9 Feb 2012 16:13:32 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Feb 2012 16:13:32 +0000 X-ASF-Spam-Status: No, hits=1.3 required=5.0 tests=SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of claus.ibsen@gmail.com designates 209.85.217.173 as permitted sender) Received: from [209.85.217.173] (HELO mail-lpp01m020-f173.google.com) (209.85.217.173) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Feb 2012 16:13:27 +0000 Received: by lbbgf7 with SMTP id gf7so1129715lbb.32 for ; Thu, 09 Feb 2012 08:13:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=dNNwDL7/zEBbM7V69aA0+j+uOlcihbvzLtw5ETQs68Y=; b=Az8qISwbc8GtJSDAQB9PETv0P5OEK9c4ic+i6g+0D2LUcZnCHu/tYngHXn8kWDo8qJ 7bPQtTSFKWgVEsQ6k5lQEY+ir+BsG8TIhuCTFXXtXl5M7KxWw8A1vSOO/yQeA87MZVs4 bu9/j0gOfK3sqYQOCbcmiWRs5p0kuI+VZl6AA= Received: by 10.112.84.170 with SMTP id a10mr827995lbz.22.1328803985255; Thu, 09 Feb 2012 08:13:05 -0800 (PST) MIME-Version: 1.0 Received: by 10.112.10.68 with HTTP; Thu, 9 Feb 2012 08:12:45 -0800 (PST) In-Reply-To: <1328798281807-5469610.post@n5.nabble.com> References: <1328798281807-5469610.post@n5.nabble.com> From: Claus Ibsen Date: Thu, 9 Feb 2012 17:12:45 +0100 Message-ID: Subject: Re: How to implement requestTimeout in the spring-ws component To: users@camel.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Hi If possible it would be nice to setup timeout options on the camel-spring-ws out of the box. Without having to resort to custom WS templates. We do this for camel-http, camel-http4 and other components. On Thu, Feb 9, 2012 at 3:38 PM, Babak Vahdat wrote: > Hi, > > I haven't tried it by myself but I think the following should do the trick: > > Define your own dedicated WebServiceTemplate inside your spring > Configuration which makes use of commons HttpClient [1] which > on it's turn provides the possibility to specify a timeout (see [2] & [3]) > and then reference that WebServiceTemplate > using the # notation [4] when you do invoke. And using the onException() > Clause you could react when timeout happens: > > onException(java.net.SocketTimeoutException)... > > [1] > http://static.springsource.org/spring-ws/site/reference/html/client.html#client-transports > [2] > http://hc.apache.org/httpclient-3.x/apidocs/org/apache/commons/httpclient/params/HttpConnectionParams.html#setSoTimeout%28int%29 > [3] > http://hc.apache.org/httpclient-3.x/apidocs/org/apache/commons/httpclient/HttpConnection.html > [4] http://camel.apache.org/spring-web-services.html > > Babak > > -- > View this message in context: http://camel.465427.n5.nabble.com/How-to-implement-requestTimeout-in-the-spring-ws-component-tp5469281p5469610.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- FuseSource Email: cibsen@fusesource.com Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/