Hi Claus,
this is really useful. I think a blog post taking bits from the
documentation and showcasing one of the examples would help spread the
word about this.

(not saying that you need to write the blog post, perhaps someone else
could volunteer)

zoran

On Tue, Aug 3, 2021 at 5:51 PM Claus Ibsen <claus.ib...@gmail.com> wrote:
>
> Hi
>
> The work has been merged, and the website has been updated
> https://camel.apache.org/manual/latest/route-configuration.html
>
>
> On Tue, Aug 3, 2021 at 2:49 PM Claus Ibsen <claus.ib...@gmail.com> wrote:
> >
> > Hi
> >
> > Back from PTO then I continued this work
> > https://issues.apache.org/jira/browse/CAMEL-16757
> >
> > I am so far that I am working on a giant PR to be ready for merging.
> > Review is welcome but it's big work so it's not so easy to understand
> > just by browsing a lot of code changes.
> > In the PR there is documentation of this new feature which is a
> > starting point to see what this fuss is all about.
> >
> > There are also two examples (standalone and spring boot) that are in
> > the github examples repo with the name routes-configuration.
> > https://github.com/apache/camel-spring-boot-examples/tree/main/routes-configuration
> > https://github.com/apache/camel-examples/tree/main/examples/routes-configuration
> >
> > There is more work to come, as I would like to add configuration of
> > errorHandler as well. The errorHandler has always been a special case,
> > as it was only in the DSL for spring xml and blueprint xml,
> > and not in the general DSL. However Java DSL had some special for
> > errorHandler too. There are some other JIRAs about this work.
> >
> >
> >
> >
> > On Thu, Jul 8, 2021 at 2:12 PM Claus Ibsen <claus.ib...@gmail.com> wrote:
> > >
> > > Hi
> > >
> > > I am working on (branch on git with the ticket number)
> > > https://issues.apache.org/jira/browse/CAMEL-16757
> > >
> > > Its work in progress, but I got a prototype in a new example
> > > https://github.com/apache/camel-examples/tree/main/examples/routes-configuration
> > >
> > > In this example we have routes in java, xml and yaml in the myroutes
> > > folder. For Java you can of course also have it in src/main/java.
> > >
> > > But the point is to make this work for dynamic loaded routes (also
> > > Java) and hence why its in the myroutes folder.
> > >
> > > These routes causes exceptions, and then we have global configured
> > > error handling in separate source code, in the myerror folder.
> > >
> > > Those are also polyglot and you can define this in XML, YAML or Java etc.
> > >
> > > There is more to work on but wanted to share the heads-up.
> > > I will be on PTO 2 weeks from tomorrow afternoon. So will work on
> > > finishing this later.
> > >
> > > The potential is also to allow users to define their global error
> > > handler, route configurations, and you can put that into separate JAR
> > > and just add as dependency. And then you can refer to these route
> > > configurations from your routes or to use the global configured etc.
> > >
> > > Feedback is welcome, the work is "not set in stone".
> > >
> > >
> > >
> > > --
> > > Claus Ibsen
> > > -----------------
> > > http://davsclaus.com @davsclaus
> > > Camel in Action 2: https://www.manning.com/ibsen2
> >
> >
> >
> > --
> > Claus Ibsen
> > -----------------
> > http://davsclaus.com @davsclaus
> > Camel in Action 2: https://www.manning.com/ibsen2
>
>
>
> --
> Claus Ibsen
> -----------------
> http://davsclaus.com @davsclaus
> Camel in Action 2: https://www.manning.com/ibsen2



-- 
Zoran Regvart

Reply via email to