Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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
xml
xml
 public void configure() throws Exception {
   rest("/say")
     .get("/hello/{language}").toD("beanjms:queue:hello?la=-${header.language}");
}

And in XML DSL

Code Block
xml
xml
<rest uri="/say">
  <get uri="/hello//{language}">
    <toD uri="beanjms:queue:hello?la=-${header.language}"/>
  </get>
<rest>

...