Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
423 views
in Technique[技术] by (71.8m points)

nonblocking - How can i make the consumer non-blocking in apache camel route

I am trying to introduce reactive approach in my project in the webservices. For that, have replaced the calling for webservices from rest-template to web client. The webservice is being called through camel routing. This is my route.

rest().get("/hello")
    .produces(MediaType.APPLICATION_JSON_VALUE)
    .route()
    .to("http:localhost:8082/movies/helloMovie?bridgeEndpoint=true");

I want that this consumer call to be non blocking i.e. caller thread should get free after hitting the to URI. It should be able to proceed with other work meanwhile the response is obtained from the to HTTP call.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...