XML routes config problem

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

XML routes config problem

Gagnon, Joseph - 0553 - MITLL
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
Reply | Threaded
Open this post in threaded view
|

Re: XML routes config problem

Alisson Gomes
Change & for &amp;

    <route id="ftpToDir">
      <from uri="ftp://{{host-name}}/{{source-dir}}?fileExist=Ignore&amp;disconnect=true"
/>
      <to uri="file://{{dest-dir}}" />
    </route>


On Mon, Mar 23, 2020 at 3:49 PM Gagnon, Joseph - 0553 - MITLL <
[hidden email]> 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
>
Reply | Threaded
Open this post in threaded view
|

RE: XML routes config problem

Gagnon, Joseph - 0553 - MITLL
Oh, that's ugly. But, it works. Thanks.

-----Original Message-----
From: Alisson Gomes <[hidden email]>
Sent: Monday, March 23, 2020 2:54 PM
To: [hidden email]
Subject: Re: XML routes config problem

Change & for &amp;

    <route id="ftpToDir">
      <from uri="ftp://{{host-name}}/{{source-dir}}?fileExist=Ignore&amp;disconnect=true"
/>
      <to uri="file://{{dest-dir}}" />
    </route>


On Mon, Mar 23, 2020 at 3:49 PM Gagnon, Joseph - 0553 - MITLL < [hidden email]> 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
>
Reply | Threaded
Open this post in threaded view
|

Re: XML routes config problem

Zoran Regvart-2
Hi Joe,
also have a look at this FAQ entry:

https://camel.apache.org/manual/latest/faq/how-do-i-use-uris-with-parameters-in-xml.html

zoran

On Mon, Mar 23, 2020 at 8:04 PM Gagnon, Joseph - 0553 - MITLL
<[hidden email]> wrote:

>
> Oh, that's ugly. But, it works. Thanks.
>
> -----Original Message-----
> From: Alisson Gomes <[hidden email]>
> Sent: Monday, March 23, 2020 2:54 PM
> To: [hidden email]
> Subject: Re: XML routes config problem
>
> Change & for &amp;
>
>     <route id="ftpToDir">
>       <from uri="ftp://{{host-name}}/{{source-dir}}?fileExist=Ignore&amp;disconnect=true"
> />
>       <to uri="file://{{dest-dir}}" />
>     </route>
>
>
> On Mon, Mar 23, 2020 at 3:49 PM Gagnon, Joseph - 0553 - MITLL < [hidden email]> 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
> >



--
Zoran Regvart