This content has been marked as final.
Show 2 replies
-
1. Re: How to do an asynshronous web service call to a camel route.
ffang Jul 18, 2012 2:24 AM (in response to kmohite)Hi,
For you scenario, you just need a async client.
If your client side is also CXF, you can use async client easily, take a look at to get more details, the "Asynchronous Invocation Model" chapter
http://fusesource.com/docs/mirrors/cxf/index/frontends/jax-ws/developing-a-consumer.html
Freeman
-
2. Re: How to do an asynshronous web service call to a camel route.
njiang Jul 18, 2012 11:18 AM (in response to kmohite)Hi,
camel-cxf is using the async by default.
As you are use the splitter, you should enable the parallelProcessing and setup the executorService like this.
... <split parallelProcessing="true" executorServiceRef="myThreadPoolExecutor" ...> ... </split> <bean id="myThreadPlloExecutor" class="java.util.concurrent.ThreadPoolExecutor"> <!-- setting up the Executor as you want --> </bean>