Reputation: 4044
I'm trying to set up an API method with camel that will immediately return a 200 status code and forward the request to a ActiveMQ queue to be processed asynchronously, but I don't know how to send the response, I can only route it to the queue. This is what I have so far:
rest("/setStatus")
.get()
.route().from("direct:setStatusRest")
.to("iasJms:setStatus");
Any help will be much appreciated.
Upvotes: 0
Views: 1339
Reputation: 2677
Something like the following:
rest("/setStatus")
.get()
.route()
.to("jms:setStatus?exchangePattern=InOnly"); // send a message to the queue
Upvotes: 1