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

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

The from("..").from("..") does not work if you do not know the number of 
endpoints in advance. 
Building the endpoint list using an expression or bean could be a nice 
addition. It would allow to abstract the config from the endpoint syntax. 
So for example you could have only a list of queues in the config and a bean 
would create the the exact dynamicep uri. 

I think this is already possible though:
MyBean epBean = new MyBean();
from(epBean.getUri()).to("..")

So I think we do not need to implement this in the component.

Btw. by using blueprint and conig admin service I was able to restart the 
context on property changes. So the endpoint list could be really changed at 
runtime without even redeploying the bundle.
                
      was (Author: [email protected]):
    The from("..").from("..") does not work if you do not know the number of 
endpoints in advance. 
Building the endpoint list using an expression or bean could be a nice 
addition. It would allow to abstract the config from the endpoint syntax. 
So for example you could have only a list of queues in the config and a bean 
would create the the exact dynamicep uri. 

I think this is already possible though:
MyBean epBean = new MyBean();
from(epBean.getUri()).to("..")

So I think we do not need to implement this in the 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

        

Reply via email to