I just checked the code of camel-spring-ws, it call the service in a 
synchronized way.
I think you can relay on the below route like  
from("direct:start").to("spring-ws://service1")…to("spring-ws://service2")….


--  
Willem Jiang

Red Hat, Inc.
FuseSource is now part of Red Hat
Web: http://www.fusesource.com | 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  
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 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 
> (http://Nabble.com).



Reply via email to