Thank you!
I will search the ticket on JIRA and follow the evolution from there.

bye,
Cristiano


2013/10/30 Claus Ibsen <claus.ib...@gmail.com>

> Yeah there is a ticket about allow to configure other stuff than
> routes in <routeContext> so someday in Camel we will support this more
> easily.
>
>
>
>
> On Wed, Oct 30, 2013 at 11:54 AM, Cristiano Costantini
> <cristiano.costant...@gmail.com> wrote:
> > Hi All,
> >
> > I'm using happily the <routeContext /> elements to define routes once and
> > then use them multiple times.
> > Well, I actually need to basically use the routes twice:
> > -  in the tests, with local endpoints and mocks
> > -  in production, inside karaf, where here are osgi service references I
> > don't have in tests
> >
> > Today I needed to use a <dataformats /> but this break my strategy.
> >
> >
> > I use 3 spring beans xml files, "routes.xml", "test.xml" and "osgi.xml":
> > - "routes.xml" contains <routeContext/>
> > - "test.xml" contains a <camelContext/> for development and testing
> > - "osgi.xml" contains a <camelContext/> for deployment
> >
> > in tests I run "routes.xml" and "test.xml", while in production I deploy
> > "routes.xml" and "osgi.xml"
> >
> > I like this strategy because I change often the camel routes and in this
> > way I don't have to align the ones in the tests and the one deployed to
> > karaf.
> >
> >
> > However <dataformats /> can't be used in <routeContext />, so I have to
> > define it in the <camelContext />, this mean I have to define a
> dataformat
> > in both "test.xml" and "osgi.xml"...
> >
> > Anyone have an idea on how I can re-use a dataformat defined somewhere
> > else?
> > In practice I would like to define the <dataformats> in "routes.xml" or
> > similar so I don't have to repeat that definition...
> >
> > Thank you
> > Cristiano
>
>
>
> --
> Claus Ibsen
> -----------------
> Red Hat, Inc.
> Email: cib...@redhat.com
> Twitter: davsclaus
> Blog: http://davsclaus.com
> Author of Camel in Action: http://www.manning.com/ibsen
>

Reply via email to