Quantcast

dynamic recipientlist

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

dynamic recipientlist

Jaffa
This post has NOT been accepted by the mailing list yet.
Hi
i am sorry i have a problem with recipientlist.
i want design a dynamic multicast with recipientlist.

for example i sent messages form 1 entpoints to 2 other.
multicast is working:

<nabble_embed> from("jms1:zero"). multicast().to("jms1:alpha", "jms1:beta"); </nabble_embed>

recipientlist inst working :
<nabble_embed> String recList = new String("jms1:alpha,jms2:beta"); from("jms1:zero") .recipientList(header("recList").tokenize(",")); </nabble_embed>
maybe someone can help my :)
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: dynamic recipientlist

Jaffa
This post has NOT been accepted by the mailing list yet.
i have found a answer...
if you have some problem do like this:
<nabble_embed> from("driact:a") .recipientList().method(MessageRouter.class, "routeTo"); </nabble_embed>

the MessageRouter.class can lool like this:
<nabble_embed> package camelinaction; public class router { public String routeTo() { return "direct:a, direct:b"; } } </nabble_embed>
Loading...