You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Christian Schneider (JIRA)" <ji...@apache.org> on 2012/06/27 11:49:44 UTC

[jira] [Comment Edited] (CAMEL-5399) New component camel-dynamicep

    [ https://issues.apache.org/jira/browse/CAMEL-5399?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13402092#comment-13402092 ] 

Christian Schneider edited comment on CAMEL-5399 at 6/27/12 9:49 AM:
---------------------------------------------------------------------

Not exactly. There are some substantial differences that made me code this.

In the dynamicep component the exact same route is used while in your example there are two instances.
Using direct endpoints this could be achieved like:
rom("file:test").to("direct:test")
from("jms:myqueue").to("direct:test")
from("direct:test").to("...")

As you can use property placeholders in the uri you can have a dynamical list of endpoints to listen on:
from("dynamicep:\{\{listenEndpoints\}\}").to("...")
So this allows to listen on a list of endpoints where the number of endpoints to listen on is not known at compile time. We use this for a customer that wants to listen on a larger list of jms queues.
This behaviour is quite difficult to mimic without the new component.

                
      was (Author: chris@die-schneider.net):
    Not exactly. There are some substantial differences that made me code this.

In the dynamicep component the exact same route is used while in your example there are two instances.
Using direct endpoints this could be achieved like:
rom("file:test").to("direct:test")
from("jms:myqueue").to("direct:test")
from("direct:test").to("...")

As you can use property placeholders in the uri you can have a dynamical list of endpoints to listen on:
from("dynamicep:{{listenEndpoints}}").to("...")
So this allows to listen on a list of endpoints where the number of endpoints to listen on is not known at compile time. We use this for a customer that wants to listen on a larger list of jms queues.
This behaviour is quite difficult to mimic without the new component.

                  
> New component camel-dynamicep
> -----------------------------
>
>                 Key: CAMEL-5399
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5399
>             Project: Camel
>          Issue Type: New Feature
>            Reporter: Christian Schneider
>            Assignee: Christian Schneider
>             Fix For: 3.0.0
>
>
> I have written a new camel-component that allows to listen on a dynamic list of endpoints. It works like this
> from("dynamicep:file:test,jms:myqueue")...
> So you simply supply a list of normal endpoints separated by commas. 
> Some things we need to decide are:
> - Name of the component. I am not sure if dynamicep i ideal. Any better names?
> - Syntax of the endpoint URI. I am not sure if the combinded URI is a valid URI
> I currently set the Fix version to 3.0.0 but we can easily backport this.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira