Re: Easier Content-based dynamic routing

2023-02-06 Thread Claus Ibsen
Look at simple language with toD, or use a java bean method to calculate the uri with recipient list (its also dynamic) On Tue, Feb 7, 2023 at 6:14 AM Yash Ganthe wrote: > Hi, > > The toD will help in setting the destination. How do we get the value of > the destination from the records? > I

Re: Easier Content-based dynamic routing

2023-02-06 Thread Yash Ganthe
Hi, The toD will help in setting the destination. How do we get the value of the destination from the records? I looked at https://camel.apache.org/components/3.20.x/dataformats/csv-dataformat.html The unmarshall does give out a List>. How can we use the 3rd field in the toD ? E.g. Can we do

Re: Easier Content-based dynamic routing

2023-02-06 Thread Claus Ibsen
Hi Yes, look at toD which is a dynamic "to". On Mon, Feb 6, 2023 at 4:04 PM Yash Ganthe wrote: > Hi, > > I have a text file that looks like: > my data, 342342, Q1 > my data2, 342342, Q2 > my data3, 342342, Q1 > > > I would like to read each line, read the third field and use it as the

Easier Content-based dynamic routing

2023-02-06 Thread Yash Ganthe
Hi, I have a text file that looks like: my data, 342342, Q1 my data2, 342342, Q2 my data3, 342342, Q1 I would like to read each line, read the third field and use it as the name of the queue to which the first and second field are written. E.g.