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 2009/08/18 08:38:35 UTC

[jira] Created: (CAMEL-1919) Include route builder as template for other routes to improve route reuse

Include route builder as template for other routes to improve route reuse
-------------------------------------------------------------------------

                 Key: CAMEL-1919
                 URL: https://issues.apache.org/activemq/browse/CAMEL-1919
             Project: Apache Camel
          Issue Type: New Feature
          Components: camel-core
    Affects Versions: 2.0-M3, 1.6.1
            Reporter: Claus Ibsen
            Assignee: Claus Ibsen
             Fix For: 2.1.0


It should be possible to include another route builder as a kind of template to improve route reuse.

The existing method {{addRoutes}} should either be change to support this properly or we add a new method.
However it does looks as if we could just tailor addRoutes method.

What needs also is to expose this in the Spring XML as well.

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


[jira] Updated: (CAMEL-1919) Include route builder as template for other routes to improve route reuse

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

Claus Ibsen updated CAMEL-1919:
-------------------------------

    Fix Version/s:     (was: 2.4.0)
                   2.3.0

> Include route builder as template for other routes to improve route reuse
> -------------------------------------------------------------------------
>
>                 Key: CAMEL-1919
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1919
>             Project: Apache Camel
>          Issue Type: New Feature
>          Components: camel-core
>    Affects Versions: 1.6.1, 2.0-M3
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.3.0
>
>         Attachments: CAMEL-1919.patch
>
>
> It should be possible to include another route builder as a kind of template to improve route reuse.
> The existing method {{addRoutes}} should either be change to support this properly or we add a new method.
> However it does looks as if we could just tailor addRoutes method.
> What needs also is to expose this in the Spring XML as well.

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


[jira] Commented: (CAMEL-1919) Include route builder as template for other routes to improve route reuse

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

Claus Ibsen commented on CAMEL-1919:
------------------------------------

TODO: Support having multiple includeRoutes

> Include route builder as template for other routes to improve route reuse
> -------------------------------------------------------------------------
>
>                 Key: CAMEL-1919
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1919
>             Project: Apache Camel
>          Issue Type: New Feature
>          Components: camel-core
>    Affects Versions: 1.6.1, 2.0-M3
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.1.0
>
>         Attachments: CAMEL-1919.patch
>
>
> It should be possible to include another route builder as a kind of template to improve route reuse.
> The existing method {{addRoutes}} should either be change to support this properly or we add a new method.
> However it does looks as if we could just tailor addRoutes method.
> What needs also is to expose this in the Spring XML as well.

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


[jira] Commented: (CAMEL-1919) Include route builder as template for other routes to improve route reuse

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

Claus Ibsen commented on CAMEL-1919:
------------------------------------

Yeah its for *including* routes that are defined as templates.

E.g. the routes you _include_ are *not* actual routes that are started as well. But you can use it to define a shared template that you would like to include in your real routes.
That shared template can have common configuration preset such as error handling, interceptors and whatnot.

Its kinda like spring xml include.

Does it make sense?

> Include route builder as template for other routes to improve route reuse
> -------------------------------------------------------------------------
>
>                 Key: CAMEL-1919
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1919
>             Project: Apache Camel
>          Issue Type: New Feature
>          Components: camel-core
>    Affects Versions: 1.6.1, 2.0-M3
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.1.0
>
>         Attachments: CAMEL-1919.patch
>
>
> It should be possible to include another route builder as a kind of template to improve route reuse.
> The existing method {{addRoutes}} should either be change to support this properly or we add a new method.
> However it does looks as if we could just tailor addRoutes method.
> What needs also is to expose this in the Spring XML as well.

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


[jira] Commented: (CAMEL-1919) Include route builder as template for other routes to improve route reuse

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

Claus Ibsen commented on CAMEL-1919:
------------------------------------

Commit the Java DSL: 806971.

TODO: Expose this in Spring DSL
TODO: rename it to includeRoutes and @deprecate the old name

> Include route builder as template for other routes to improve route reuse
> -------------------------------------------------------------------------
>
>                 Key: CAMEL-1919
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1919
>             Project: Apache Camel
>          Issue Type: New Feature
>          Components: camel-core
>    Affects Versions: 1.6.1, 2.0-M3
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.1.0
>
>         Attachments: CAMEL-1919.patch
>
>
> It should be possible to include another route builder as a kind of template to improve route reuse.
> The existing method {{addRoutes}} should either be change to support this properly or we add a new method.
> However it does looks as if we could just tailor addRoutes method.
> What needs also is to expose this in the Spring XML as well.

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


[jira] Updated: (CAMEL-1919) Include route builder as template for other routes to improve route reuse

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

Claus Ibsen updated CAMEL-1919:
-------------------------------

    Fix Version/s:     (was: 2.2.0)
                   2.3.0

> Include route builder as template for other routes to improve route reuse
> -------------------------------------------------------------------------
>
>                 Key: CAMEL-1919
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1919
>             Project: Apache Camel
>          Issue Type: New Feature
>          Components: camel-core
>    Affects Versions: 1.6.1, 2.0-M3
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.3.0
>
>         Attachments: CAMEL-1919.patch
>
>
> It should be possible to include another route builder as a kind of template to improve route reuse.
> The existing method {{addRoutes}} should either be change to support this properly or we add a new method.
> However it does looks as if we could just tailor addRoutes method.
> What needs also is to expose this in the Spring XML as well.

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


[jira] Resolved: (CAMEL-1919) Include route builder as template for other routes to improve route reuse

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

Claus Ibsen resolved CAMEL-1919.
--------------------------------

    Resolution: Fixed

> Include route builder as template for other routes to improve route reuse
> -------------------------------------------------------------------------
>
>                 Key: CAMEL-1919
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1919
>             Project: Apache Camel
>          Issue Type: New Feature
>          Components: camel-core
>    Affects Versions: 1.6.1, 2.0-M3
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.4.0
>
>         Attachments: CAMEL-1919.patch
>
>
> It should be possible to include another route builder as a kind of template to improve route reuse.
> The existing method {{addRoutes}} should either be change to support this properly or we add a new method.
> However it does looks as if we could just tailor addRoutes method.
> What needs also is to expose this in the Spring XML as well.

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


[jira] Updated: (CAMEL-1919) Include route builder as template for other routes to improve route reuse

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

Claus Ibsen updated CAMEL-1919:
-------------------------------

    Fix Version/s:     (was: 2.3.0)
                   2.4.0

> Include route builder as template for other routes to improve route reuse
> -------------------------------------------------------------------------
>
>                 Key: CAMEL-1919
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1919
>             Project: Apache Camel
>          Issue Type: New Feature
>          Components: camel-core
>    Affects Versions: 1.6.1, 2.0-M3
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.4.0
>
>         Attachments: CAMEL-1919.patch
>
>
> It should be possible to include another route builder as a kind of template to improve route reuse.
> The existing method {{addRoutes}} should either be change to support this properly or we add a new method.
> However it does looks as if we could just tailor addRoutes method.
> What needs also is to expose this in the Spring XML as well.

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


[jira] Updated: (CAMEL-1919) Include route builder as template for other routes to improve route reuse

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

Claus Ibsen updated CAMEL-1919:
-------------------------------

    Fix Version/s:     (was: 2.1.0)
                   2.2.0

> Include route builder as template for other routes to improve route reuse
> -------------------------------------------------------------------------
>
>                 Key: CAMEL-1919
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1919
>             Project: Apache Camel
>          Issue Type: New Feature
>          Components: camel-core
>    Affects Versions: 1.6.1, 2.0-M3
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.2.0
>
>         Attachments: CAMEL-1919.patch
>
>
> It should be possible to include another route builder as a kind of template to improve route reuse.
> The existing method {{addRoutes}} should either be change to support this properly or we add a new method.
> However it does looks as if we could just tailor addRoutes method.
> What needs also is to expose this in the Spring XML as well.

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


[jira] Updated: (CAMEL-1919) Include route builder as template for other routes to improve route reuse

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

Claus Ibsen updated CAMEL-1919:
-------------------------------

    Attachment: CAMEL-1919.patch

Patch for the Java DSL

> Include route builder as template for other routes to improve route reuse
> -------------------------------------------------------------------------
>
>                 Key: CAMEL-1919
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1919
>             Project: Apache Camel
>          Issue Type: New Feature
>          Components: camel-core
>    Affects Versions: 1.6.1, 2.0-M3
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.1.0
>
>         Attachments: CAMEL-1919.patch
>
>
> It should be possible to include another route builder as a kind of template to improve route reuse.
> The existing method {{addRoutes}} should either be change to support this properly or we add a new method.
> However it does looks as if we could just tailor addRoutes method.
> What needs also is to expose this in the Spring XML as well.

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


[jira] Commented: (CAMEL-1919) Include route builder as template for other routes to improve route reuse

Posted by "Hadrian Zbarcea (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-1919?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=53751#action_53751 ] 

Hadrian Zbarcea commented on CAMEL-1919:
----------------------------------------

I am not sure I understand what problem we are trying to solve here.  Don't we already find all RouteBuilders in the classpath and start all routes?  Is this for inner classes?  

> Include route builder as template for other routes to improve route reuse
> -------------------------------------------------------------------------
>
>                 Key: CAMEL-1919
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1919
>             Project: Apache Camel
>          Issue Type: New Feature
>          Components: camel-core
>    Affects Versions: 1.6.1, 2.0-M3
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.1.0
>
>         Attachments: CAMEL-1919.patch
>
>
> It should be possible to include another route builder as a kind of template to improve route reuse.
> The existing method {{addRoutes}} should either be change to support this properly or we add a new method.
> However it does looks as if we could just tailor addRoutes method.
> What needs also is to expose this in the Spring XML as well.

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


[jira] Commented: (CAMEL-1919) Include route builder as template for other routes to improve route reuse

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

Claus Ibsen commented on CAMEL-1919:
------------------------------------

A better name is {{includeRoutes}} as its like XML include etc.

> Include route builder as template for other routes to improve route reuse
> -------------------------------------------------------------------------
>
>                 Key: CAMEL-1919
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1919
>             Project: Apache Camel
>          Issue Type: New Feature
>          Components: camel-core
>    Affects Versions: 1.6.1, 2.0-M3
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.1.0
>
>         Attachments: CAMEL-1919.patch
>
>
> It should be possible to include another route builder as a kind of template to improve route reuse.
> The existing method {{addRoutes}} should either be change to support this properly or we add a new method.
> However it does looks as if we could just tailor addRoutes method.
> What needs also is to expose this in the Spring XML as well.

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