Hi And yeah if you have multiple consumers on direct then that is not supported, it never was. A direct has 1 consumer only. You can use seda endpoints that can have multiple consumers.
So it may be that 2.x didnt detect this somehow. On Fri, Dec 6, 2019 at 10:55 AM Dennis Holunder <dennish...@gmail.com> wrote: > > Ok. It was without custom main BTW. I just modified official camel-cdi > example and added a parent class. > > Am Fr., 6. Dez. 2019 um 10:39 Uhr schrieb Claus Ibsen-2 [via Camel] > <ml+s465427n5850037...@n5.nabble.com>: > > > > Hi > > > > Its likely fixed by that other bug, and you have it due to using > > camel-cdi / cdi main etc. > > > > On Fri, Dec 6, 2019 at 10:23 AM Dennis Holunder <[hidden email]> wrote: > > > > > > > > I have some class hierarchy to share common functionality but it > > > doesn't work with camel-3: > > > > > > 2019-12-06 10:20:35,959 [ngupInterceptor] INFO > > > MainSupport$HangupInterceptor - Received hang up - stopping the main > > > instance. > > > org.apache.camel.FailedToStartRouteException: Failed to start route > > > route3 because of Multiple consumers for the same endpoint is not > > > allowed: direct://abstract > > > > > > the only two classes: > > > > > > abstract public class AbstractRoute extends RouteBuilder { > > > > > > @Override > > > public void configure() throws Exception { > > > from("direct:abstract").log("abstract"); > > > addChildRoutes(); > > > } > > > abstract void addChildRoutes(); > > > } > > > > > > public class MyRoute extends AbstractRoute { > > > @Override > > > void addChildRoutes() { > > > from("timer://foo?fixedRate=true&period=5s").log("running > > > ${body}"); > > > } > > > } > > > > > > is it a bug or not supported in camel-3 anymore? > > > > > > > > -- > > Claus Ibsen > > ----------------- > > http://davsclaus.com @davsclaus > > Camel in Action 2: https://www.manning.com/ibsen2 > > > > > > ________________________________ > > If you reply to this email, your message will be added to the discussion > > below: > > https://camel.465427.n5.nabble.com/Camel-3-multiple-consumers-error-with-class-hierarchy-tp5850028p5850037.html > > To unsubscribe from Camel, click here. > > NAML -- Claus Ibsen ----------------- http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2