THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
The Rest DSL supports the new .toD <toD> as dynamic to in the rest-dsl. For example to call a bean with the id from the rest url, you can dodo a request/reply over JMS where the queue name is dynamic defined
Code Block | ||||
---|---|---|---|---|
| ||||
public void configure() throws Exception { rest("/say") .get("/hello/{language}").toD("beanjms:queue:hello?la=-${header.language}"); } |
And in XML DSL
Code Block | ||||
---|---|---|---|---|
| ||||
<rest uri="/say"> <get uri="/hello//{language}"> <toD uri="beanjms:queue:hello?la=-${header.language}"/> </get> <rest> |
...