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

Guillaume Nodet edited comment on CAMEL-5399 at 6/27/12 10:24 AM:
------------------------------------------------------------------

I didn't say we could do it now, but I think the same thing would be better 
achieved using an expression passed to from(xx)
such as from(myExpression) for a dynamic list or using multiple arguments 
from(xx, yy) for a fixed list.
So what I was suggesting is enhance the RouteBuilder to support using an 
expression as the from parameter instead of writing a new component.  Given the 
RouteBuilder already supports a few variations, one more would be more 
consistent and flexible than a new component, so in addition to
{code}
from(Endpoint)
from(Endpoint...)
from(String)
from(String...)
{code}
we'd have
{code}
from(Expression)
{code}
and afaik, that would fix your use case and be even more flexible than a 
component I think.

                
      was (Author: gnt):
    I didn't say we could do itnow, but I think the same thing would be better 
achieved using an expression passed to from(xx)
such as from(myExpression) for a dynamic list or using multiple arguments 
from(xx, yy) for a fixed list.
So what I was suggesting is enhance the RouteBuilder to support using an 
expression as the from parameter instead of writing a new component.  Given the 
RouteBuilder already supports a few variations, one more would be more 
consistent and flexible than a new component, so in addition to
{code}
 from(Endpoint)
 from(Endpoint...)
 from(String)
 from(String...)
{code}
we'd have
{code}
 from(Expression)
{code}
and afaik, that would fix your use case and be even more flexible than a 
component I think.

                  
> 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

        

Reply via email to