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 816C5EB75 for ; Tue, 27 Nov 2012 12:58:42 +0000 (UTC) Received: (qmail 72066 invoked by uid 500); 27 Nov 2012 12:58:42 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 71732 invoked by uid 500); 27 Nov 2012 12:58:39 -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 Delivered-To: moderator for dev@camel.apache.org Received: (qmail 56468 invoked by uid 99); 27 Nov 2012 12:56:31 -0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: 216.139.236.26 is neither permitted nor denied by domain of gsiewruk@gmail.com) Date: Tue, 27 Nov 2012 04:56:04 -0800 (PST) From: Grzegorz S To: dev@camel.apache.org Message-ID: <1354020964310-5723302.post@n5.nabble.com> Subject: CAMEL with Spring WS for synchronization MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hello i am creating Web Service using Spring. My system architecture look like: Client <--> Web Service1 <--> querry <--> Web Service2 <--> Server. Client sends a request to Server1, via WS1. WS1 puts an objects in a query and wait (checking if there is any thing new). Then, we we have a process running on Server2, checking new objects. When there is a new object, it 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 detects the change, does some job and replay to the client. Problem lies in synchronization because response have to be sent to clien within one session, and i do not knew time of proccesing request in Server. I heard about some CAMEL synchronization method that could help me something like wait with executing code till there will be response in querry. Thread.sleep or any kind of a method that stop executing code is unacceptable. I have never had any connection with camel, that is why i posted it here so maybe if this is possible and if it is where should i start. -- View this message in context: http://camel.465427.n5.nabble.com/CAMEL-with-Spring-WS-for-synchronization-tp5723302.html Sent from the Camel Development mailing list archive at Nabble.com.