camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Gies <>
Subject Re: Help with Dynamic route
Date Fri, 11 Oct 2013 11:17:59 GMT
Just noted, that I copied the wrong link in my answer earlier on.


Sorry for this

On 10/11/2013 01:05 PM, Andreas Gies wrote:
> Hi,
> if I understand correctly, you want to modify the multicast processor 
> and add another branch to it
> rather than adding another route to the camel context.
> I had (a very brief) look at the MulticastProcessor. You can find the 
> Javadoc at [1]
> [1]
> As far as I can see, there is no way to manipulate the Processor after 
> it has been created.
> Personally I would be reluctant to modify routes once they have been 
> created. I prefer
> shutting them down in order and recreate them.
> In other words you would end up in Java DSL land and some kind of 
> RouteFactory that'd create
> routes. You need to keep track of the route created and can implement 
> some recreation
> logic in a listener to whatever events trigger the change to the list 
> of recipients.
> If the change occurs to frequently, I think you should reconsider as 
> you don't want to
> shutdown and recreate your routes all the time. If you have events 
> that need distribution
> to an unknown set of recipients, perhaps a JMS Topic would more serve 
> the purpose ?
> Perhaps you want to implement your own processor that allows dynamic 
> registration
> of endpoints to dispatch to ?
> Just my 2ct
> Andreas
> On 10/11/2013 12:40 PM, gudiseashok wrote:
>> Hi I have a requirement, I want start some routes and leave them with
>> polling, after some time I want to add some more like that kind.
>> example
>> <from uri="direct:start">
>> <multicast>
>> <to uri="direct:a">
>> <to uri="direct:b">
>> <multicast>
>> If I want to add another router dynamically to the multicast, like
>> <from uri="direct:start">
>> <multicast>
>> .........
>> <to uri="dynamic route here"
>> <multicast>
>> is this possible if I add if i use dynamicroute configure ( ...from("")
>> to....)
>> rouytebuilder.add routes to contact(camelcontext
>> like this?
>> Please advice...
>> -- 
>> View this message in context: 
>> Sent from the Camel - Users mailing list archive at


    Andreas Gies

WoQ -- Way of Quality UG

Geschäftsführer & CTO

/eMail:/ <>

/Tel:/ +49 151 23470823

/Fax:/ +49 1805 006534 2114

/Twitter:/ andreasgies /Skype:/ giessonic

/LinkedIn:/ <> 

/Xing:/ <> 

/Blog:/ <> 

/Github:/ <> (

/Amtsgericht Landshut:/HRB 8352//


/Ust.-Id.:/ DE274771254


Diese Email kann vertrauliche und/oder rechtlich geschützte 
Informationen enthalten und ist ausschließlich für den/die benannten 
Adressaten bestimmt. Sollten Sie nicht der beabsichtigte Empfänger sein 
oder diese Email irrtümlich erhalten haben, ist es Ihnen nicht gestattet 
diese Mail oder einen Teil davon ohne unsere Erlaubnis zu verbreiten, zu 
kopieren, unbefugt weiterzuleiten oder zu behalten. Informieren Sie 
bitte sofort den Absender telefonisch oder per Email und löschen Sie 
diese Email und alle Kopien aus Ihrem System. Wir haften nicht für die 
Unversehrtheit von Emails, nachdem sie unseren Einflussbereich verlassen 


This email may contain confidential and/or privileged information and is 
intended solely for the attention and use of the named addressee(s). If 
you are not the intended recipient, or a person responsible for 
delivering it to the intended recipient, you are not authorized to and 
must not disclose, copy, distribute, or retain this message or any part 
of it without our authority. Please contact the sender by call or reply 
email immediately and destroy all copies and the original message. We 
are not responsible for the integrity of emails after they have left our 
sphere of control.


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message