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/04/27 09:19:26 UTC

[jira] Created: (CAMEL-2677) Make it possible in to refer to routes outside the context, eg located in other Spring XML files

Make it possible in <camelContext/> to refer to routes outside the context, eg located in other Spring XML files
----------------------------------------------------------------------------------------------------------------

                 Key: CAMEL-2677
                 URL: https://issues.apache.org/activemq/browse/CAMEL-2677
             Project: Apache Camel
          Issue Type: New Feature
          Components: camel-spring
            Reporter: Claus Ibsen
            Assignee: Claus Ibsen
             Fix For: 2.3.0


When you have many routes, it would be nice to use other Spring XML files to define routes and have a <camelContext/> being able to refer to those routes.

{code:xml}
<camelContext>
   <route ref="myCommonRoute"/>
   <route ref="myCoolRoute"/>
</camelContext>
{code}

Maybe the <route ref/> cannot easily be used as its a real route tag. So we may have to use another tag name such as {{routeRef}} or something.

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


[jira] Commented: (CAMEL-2677) Make it possible in to refer to routes outside the context, eg located in other Spring XML files

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

Claus Ibsen commented on CAMEL-2677:
------------------------------------

There should be some other tickets which is related to this.

> Make it possible in <camelContext/> to refer to routes outside the context, eg located in other Spring XML files
> ----------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-2677
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2677
>             Project: Apache Camel
>          Issue Type: New Feature
>          Components: camel-spring
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.3.0
>
>
> When you have many routes, it would be nice to use other Spring XML files to define routes and have a <camelContext/> being able to refer to those routes.
> {code:xml}
> <camelContext>
>    <route ref="myCommonRoute"/>
>    <route ref="myCoolRoute"/>
> </camelContext>
> {code}
> Maybe the <route ref/> cannot easily be used as its a real route tag. So we may have to use another tag name such as {{routeRef}} or something.

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


[jira] Commented: (CAMEL-2677) Make it possible in to refer to routes outside the context, eg located in other Spring XML files

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

Claus Ibsen commented on CAMEL-2677:
------------------------------------

trunk: 938471.

> Make it possible in <camelContext/> to refer to routes outside the context, eg located in other Spring XML files
> ----------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-2677
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2677
>             Project: Apache Camel
>          Issue Type: New Feature
>          Components: camel-spring
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.3.0
>
>
> When you have many routes, it would be nice to use other Spring XML files to define routes and have a <camelContext/> being able to refer to those routes.
> {code:xml}
> <camelContext>
>    <route ref="myCommonRoute"/>
>    <route ref="myCoolRoute"/>
> </camelContext>
> {code}
> Maybe the <route ref/> cannot easily be used as its a real route tag. So we may have to use another tag name such as {{routeRef}} or something.

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


[jira] Commented: (CAMEL-2677) Make it possible in to refer to routes outside the context, eg located in other Spring XML files

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

Claus Ibsen commented on CAMEL-2677:
------------------------------------

trunk: 938376.

RouteDefinition should be stateless, eg not tied to a CamelContext. This allows us to have reusable route defs used by multiple CamelContexts.

> Make it possible in <camelContext/> to refer to routes outside the context, eg located in other Spring XML files
> ----------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-2677
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2677
>             Project: Apache Camel
>          Issue Type: New Feature
>          Components: camel-spring
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.3.0
>
>
> When you have many routes, it would be nice to use other Spring XML files to define routes and have a <camelContext/> being able to refer to those routes.
> {code:xml}
> <camelContext>
>    <route ref="myCommonRoute"/>
>    <route ref="myCoolRoute"/>
> </camelContext>
> {code}
> Maybe the <route ref/> cannot easily be used as its a real route tag. So we may have to use another tag name such as {{routeRef}} or something.

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


[jira] Resolved: (CAMEL-2677) Make it possible in to refer to routes outside the context, eg located in other Spring XML files

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-2677?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-2677.
--------------------------------

    Resolution: Fixed

Documentation at: http://cwiki.apache.org/confluence/display/CAMEL/How+do+I+import+routes+from+other+XML+files

> Make it possible in <camelContext/> to refer to routes outside the context, eg located in other Spring XML files
> ----------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-2677
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2677
>             Project: Apache Camel
>          Issue Type: New Feature
>          Components: camel-spring
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.3.0
>
>
> When you have many routes, it would be nice to use other Spring XML files to define routes and have a <camelContext/> being able to refer to those routes.
> {code:xml}
> <camelContext>
>    <route ref="myCommonRoute"/>
>    <route ref="myCoolRoute"/>
> </camelContext>
> {code}
> Maybe the <route ref/> cannot easily be used as its a real route tag. So we may have to use another tag name such as {{routeRef}} or something.

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