Hi

Yes, look at toD which is a dynamic "to".


On Mon, Feb 6, 2023 at 4:04 PM Yash Ganthe <yas...@gmail.com> 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 name
> of the queue to which the first and second field are written.
> E.g.
> from("file://myfile.txt").to("jmsqueue:"+Line[2])
>
> Is something like this possible with Camel?
>
> -Yash
>


-- 
Claus Ibsen
-----------------
@davsclaus
Camel in Action 2: https://www.manning.com/ibsen2

Reply via email to