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.costant...@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
>

Reply via email to