You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Cristiano Costantini <cr...@gmail.com> on 2013/06/13 13:08:57 UTC

"costants" string for URIs in a bean.xml

Hi all,

I'm moving my routes from Java DSL to the beans.xml (I'll deploy the xml
file into ServiceMix).

Now in java I have some long uri, for example
"seda:output?multipleConsumers=true&amp;waitForTaskToComplete=Never"
which I extract to a constant and I use in the RouteBuilder.

In XML I'm finding myself to write the long URI in every route... and it is
easy to make errors as I change the various options and I manually need to
align every endpoint that use it.

Does it exist a way to store the URI's string in something like a xml
constant and reference it with a easy name in the routes?

Thank you!

Cristiano

Re: "costants" string for URIs in a bean.xml

Posted by Taariq Levack <ta...@gmail.com>.
Rather store the URI in a file, see http://camel.apache.org/properties.html

Taariq


On Thu, Jun 13, 2013 at 1:08 PM, Cristiano Costantini <
cristiano.costantini@gmail.com> wrote:

> Hi all,
>
> I'm moving my routes from Java DSL to the beans.xml (I'll deploy the xml
> file into ServiceMix).
>
> Now in java I have some long uri, for example
> "seda:output?multipleConsumers=true&amp;waitForTaskToComplete=Never"
> which I extract to a constant and I use in the RouteBuilder.
>
> In XML I'm finding myself to write the long URI in every route... and it is
> easy to make errors as I change the various options and I manually need to
> align every endpoint that use it.
>
> Does it exist a way to store the URI's string in something like a xml
> constant and reference it with a easy name in the routes?
>
> Thank you!
>
> Cristiano
>