Oh, that's ugly. But, it works. Thanks.
-----Original Message-----
From: Alisson Gomes <[email protected]>
Sent: Monday, March 23, 2020 2:54 PM
To: [email protected]
Subject: Re: XML routes config problem
Change & for &
<route id="ftpToDir">
<from
uri="ftp://{{host-name}}/{{source-dir}}?fileExist=Ignore&disconnect=true"
/>
<to uri="file://{{dest-dir}}" />
</route>
On Mon, Mar 23, 2020 at 3:49 PM Gagnon, Joseph - 0553 - MITLL <
[email protected]> wrote:
> Hello,
>
> I’m very new with Camel and still trying to figure it out. I have a
> simple application that configures routing via XML and I’m getting a
> strange error (from eclipse) when I attempt to do the following:
>
> <route id="ftpToDir">
> <from
> uri="ftp://{{host-name}}/{{source-dir}}?fileExist=Ignore&disconnect=true"
> />
> <to uri="file://{{dest-dir}}" />
> </route>
>
> Eclipse indicates an error on the “from” line stating:
>
> The reference to entity “disconnect” must end with the “;” delimiter.
>
> I don’t understand the complaint. The component documentation says
> that the URI is as follows:
>
> ftp://[username@]hostname[:port]/directoryname[?options]
> where: ?option=value&option=value&…
>
> What am I doing wrong?
>
> Thanks,
> Joe
>