Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Polished examples.

...


Or creating new route RoutesBuilder bean in your @Configuration class:

Code Block
languagejava
@Component@Configuration
public class MyRouter extends RouteBuilder {

  @Override
   MyRouterConfiguration {

  @Bean
  RoutesBuilder myRouter() {
    return new RouteBuilder() {


      @Override
      public void configure() throws Exception {
        from("jms:invoices").to("file:/invoices");
      }

}

* </p>
* <p>
* <pre>
* {@literal @}Configuration
* public class MyRouterConfiguration {
*
* {@literal @}Bean
* RoutesBuilder myRouter() {
* return new RouteBuilder() {
*
* {@literal @}Override
* public void configure() throws Exception {
* from("jms:invoices").to("file:/invoices");
* }
*
* };
* }
*
* }
* </pre>
* </p>
*/

...

  };
}


Include Page
Endpoint See Also
Endpoint See Also