Return-Path: X-Original-To: apmail-camel-dev-archive@www.apache.org Delivered-To: apmail-camel-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B40DFDC36 for ; Wed, 28 Nov 2012 08:57:47 +0000 (UTC) Received: (qmail 88627 invoked by uid 500); 28 Nov 2012 08:57:46 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 88431 invoked by uid 500); 28 Nov 2012 08:57:46 -0000 Mailing-List: contact dev-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list dev@camel.apache.org Received: (qmail 88363 invoked by uid 99); 28 Nov 2012 08:57:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Nov 2012 08:57:43 +0000 X-ASF-Spam-Status: No, hits=0.6 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of willem.jiang@gmail.com designates 209.85.160.45 as permitted sender) Received: from [209.85.160.45] (HELO mail-pb0-f45.google.com) (209.85.160.45) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Nov 2012 08:57:38 +0000 Received: by mail-pb0-f45.google.com with SMTP id mc8so9593291pbc.32 for ; Wed, 28 Nov 2012 00:57:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:message-id:in-reply-to:references:subject:x-mailer :mime-version:content-type:content-transfer-encoding :content-disposition; bh=o9caLLdbtBZtY6cbxELvG1JQDmdmKSiWrI+U/MYrla4=; b=nZb5X7Njrgp7l+dx17FO1yZSl3bNycPOzWiTFcsZgBQEeUAuy6ti+qRCfstAm4CBeC ggz2BJrWKzjg1tu91D5Kyqsyzu5Ek+bTeMDATFh7ltN+urT/ldxhqEp4j64nWNaXVuUz ERfp6UpKaNFbJ7j38RfBfNBEycg3fgiKJlN2Ddw5CAF2cHpn9MIWHc8+70kYIAtWEVWr 4EOFXWP//qMF8G1nVcG5qa4FbrNZh8+AUDe8Xf6e4ClwDzEH2bhXJ5XcH/8t5tvSsB4m yJS0jCwS9ksCXVB1kh7CMhf04SZk13HnTxSsSa0crzGpwIdCXHNUR+RuIeEA1dPohBOz g72Q== Received: by 10.66.87.130 with SMTP id ay2mr50137855pab.58.1354093038196; Wed, 28 Nov 2012 00:57:18 -0800 (PST) Received: from [10.66.17.39] ([203.114.244.88]) by mx.google.com with ESMTPS id nf9sm12138322pbc.17.2012.11.28.00.57.16 (version=SSLv3 cipher=OTHER); Wed, 28 Nov 2012 00:57:17 -0800 (PST) Date: Wed, 28 Nov 2012 16:57:09 +0800 From: Willem jiang To: dev@camel.apache.org Message-ID: <9983D243748B4B3C84DEB8ABF08259E0@gmail.com> In-Reply-To: <1354020964310-5723302.post@n5.nabble.com> References: <1354020964310-5723302.post@n5.nabble.com> Subject: Re: CAMEL with Spring WS for synchronization X-Mailer: sparrow 1.6.4 (build 1176) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Checked: Checked by ClamAV on apache.org I just checked the code of camel-spring-ws, it call the service in a sync= hronized way. I think you can relay on the below route like =20 from(=22direct:start=22).to(=22spring-ws://service1=22)=E2=80=A6to(=22spr= ing-ws://service2=22)=E2=80=A6. -- =20 Willem Jiang Red Hat, Inc. =46useSource is now part of Red Hat Web: http://www.fusesource.com =7C http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) = (English) http://jnn.javaeye.com (http://jnn.javaeye.com/) (Chinese) Twitter: willemjiang =20 Weibo: willemjiang On Tuesday, November 27, 2012 at 8:56 PM, Grzegorz S wrote: > Hello i am creating Web Service using Spring. My system architecture lo= ok > like: Client <--> Web Service1 <--> querry <--> Web Service2 <--> Serve= r. > =20 > Client sends a request to Server1, via WS1. WS1 puts an objects in a qu= ery > and wait (checking if there is any thing new). Then, we we have a proce= ss > running on Server2, checking new objects. When there is a new object, i= t > call Server via WS2. Some job are done, WS2 replay, process one Server2= put > something back on the queue, then, the process running on Server1 detec= ts > the change, does some job and replay to the client. > =20 > Problem lies in synchronization because response have to be sent to cli= en > within one session, and i do not knew time of proccesing request in Ser= ver. > I heard about some CAMEL synchronization method that could help me some= thing > like wait with executing code till there will be response in querry. > =20 > Thread.sleep or any kind of a method that stop executing code is > unacceptable. > =20 > I have never had any connection with camel, that is why i posted it her= e so > maybe if this is possible and if it is where should i start. > =20 > =20 > =20 > -- > View this message in context: http://camel.465427.n5.nabble.com/CAMEL-w= ith-Spring-WS-for-synchronization-tp5723302.html > Sent from the Camel Development mailing list archive at Nabble.com (htt= p://Nabble.com).