camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CAMEL-7712) Route id not set when using onException definition
Date Mon, 18 Aug 2014 07:50:18 GMT

     [ https://issues.apache.org/jira/browse/CAMEL-7712?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Claus Ibsen resolved CAMEL-7712.
--------------------------------

    Resolution: Fixed

> Route id not set when using onException definition
> --------------------------------------------------
>
>                 Key: CAMEL-7712
>                 URL: https://issues.apache.org/jira/browse/CAMEL-7712
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-scala
>    Affects Versions: 2.13.2
>            Reporter: Edin Hodzic
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.12.5, 2.13.3, 2.14.0
>
>
> Given this route:
> {code:title=MyRoute.scala}
> import org.apache.camel.main.Main
> import org.apache.camel.scala.dsl.builder.{RouteBuilder, RouteBuilderSupport}
> class MyRoute extends RouteBuilder {
>   "direct:input" ==> {
>     id("my-route")
>     to("mock:output")
>   }
> }
> object MyRoute extends RouteBuilderSupport {
>   def main(args: Array[String]) {
>     val main = new Main()
>     main.enableHangupSupport
>     main.addRouteBuilder(new MyRoute)
>     main.run
>   }
>   
> }
> {code}
> On startup we can see a {{my-route}} id:
> {noformat}
> [main] DefaultCamelContext INFO Route: my-route started and consuming from: Endpoint[direct://input]
> {noformat}
> Adding an {{onException}} definition to the route:
> {code}
>   handle[FileNotFoundException] {
>     to("mock:exception")
>   }.handled
> {code}
> On startup we can see a {{route1}} id:
> {noformat}
> [main] DefaultCamelContext INFO Route: route1 started and consuming from: Endpoint[direct://input]
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message