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] http://camel.apache.org/maven/current/camel-core/apidocs/index.html
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:
http://camel.465427.n5.nabble.com/Help-with-Dynamic-route-tp5741336.html
Sent from the Camel - Users mailing list archive at Nabble.com.
--
Andreas Gies
WoQ -- Way of Quality UG
Geschäftsführer & CTO
/eMail:/andr...@wayofquality.de <mailto:andr...@wayofquality.de>
/Tel:/ +49 151 23470823
/Fax:/ +49 1805 006534 2114
/Twitter:/ andreasgies /Skype:/ giessonic
/LinkedIn:/ <http://de.linkedin.com/pub/andreas-gies/0/594/aa5/>
(http://de.linkedin.com/pub/andreas-gies/0/594/aa5/)
/Xing:/ <http://www.xing.com/profile/Andreas_Gies>
(http://www.xing.com/profile/Andreas_Gies)
/Blog:/ <http://www.wayofquality.de/index.php/en/blog>
(http://www.wayofquality.de/index.php/en/blog)
/Github:/ <https://github.com/atooni> (https://github.com/atooni)
/Amtsgericht Landshut:/HRB 8352//
//
/Ust.-Id.:/ DE274771254
Haftungsausschluss
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
haben.
Disclaimer
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.
//