You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2010/11/29 14:07:37 UTC

[jira] Resolved: (CAMEL-3378) Make it easier to load routes from XML files using a method from CamelContext

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

Claus Ibsen resolved CAMEL-3378.
--------------------------------

    Resolution: Fixed

trunk: 1040099.

> Make it easier to load routes from XML files using a method from CamelContext
> -----------------------------------------------------------------------------
>
>                 Key: CAMEL-3378
>                 URL: https://issues.apache.org/jira/browse/CAMEL-3378
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-core
>    Affects Versions: 2.5.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.6.0
>
>
> Currently you got to battle with JAXB to do this. But we should add method to do this in few lines of code.
> {code}
>         InputStream is = getClass().getResourceAsStream("barRoute.xml");
>         RoutesDefinition routes = context.loadRoutesDefinition(is);
>         context.addRouteDefinitions(routes.getRoutes());
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.