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:03:37 UTC

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

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.


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

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ 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.


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

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-3378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12964744#action_12964744 ] 

Claus Ibsen commented on CAMEL-3378:
------------------------------------

https://cwiki.apache.org/confluence/display/CAMEL/Loading+routes+from+XML+files

> 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.