Hi Claus, sorry I forgot to mention it: 3.18.0

On Fri, Feb 24, 2023 at 1:31 PM Claus Ibsen <claus.ib...@gmail.com> wrote:

> What Camel version do you use
>
> On Fri, Feb 24, 2023 at 12:04 PM Arnaud Level <arn...@toro-intl.com>
> wrote:
>
> > Hi,
> >
> > We are trying to configure a HTTP handler on our Undertow endpoint:
> > rest("/items/{itemId}/colors?handlers=authorizationHandler")
> >                 .get("/").to("direct:xxx");
> >
> > The AuthorizationHandler class
> > implements org.apache.camel.component.undertow.CamelUndertowHttpHandler
> > Camel throws the following exception at
> > start: org.apache.camel.NoSuchBeanException: No bean could be found in
> the
> > registry for: authorizationHandler:/ of type:
> > org.apache.camel.component.undertow.CamelUndertowHttpHandler
> >
> > The bean is created in our Configuration class and *we can find it the
> > registry* (in our RouteBuilder class just before the above route is
> > defined) with the two following methods:
> > CamelUndertowHttpHandler test1 =
> >
> >
> getContext().getRegistry().findSingleByType(CamelUndertowHttpHandler.class);
> > Object test2 =
> > getContext().getRegistry().lookupByName("authorizationHandler");
> > So we know the bean is in the registry before the route is defined.
> >
> > We could not find any examples. Could someone please tell us how handlers
> > are supposed to be configured to get them working ?
> >
> > Thank you in advance!
> > Arnaud
> >
>
>
> --
> Claus Ibsen
> -----------------
> @davsclaus
> Camel in Action 2: https://www.manning.com/ibsen2
>


-- 

Arnaud Level

Head of Server & Operations

TORO DEVELOPMENT LTD.


T: +34 935 186 046

M: *+34 691 056 730*

Còrsega 371, 3a planta 08037 Barcelona, Spain
www.toro-intl.com



------------------------------
Legal warning:
This message and its attachments are intended exclusively for its addressee
and may contain confidential information subject to professional secrecy.
Reproduction or distribution without the express permission of TORO
DEVELOPMENT SL is not allowed. If you believe that it has been sent to you
in error, please reply to the sender that you received the message in error.
According to the Data Protection Act, we inform you that your personal
information and email are part of a file owned by TORO DEVELOPMENT SL, the
purpose of the file being, commercial management and sending commercial
communications about our products and/or services. If you wish, you may
exercise rights of access, rectification, cancellation and opposition of
your data by sending a message to the following email address
*cont...@toro-eu.com
<cont...@toro-eu.com>*, indicating the "Subject" as the right you want to
exercise.
Aviso legal:
Este mensaje y sus archivos adjuntos van dirigidos exclusivamente a su
destinatario, pudiendo contener información confidencial sometida a secreto
profesional. No está permitida su reproducción o distribución sin la
autorización expresa de TORO DEVELOPMENT S.L.. Si usted no es el
destinatario final por favor elimínelo e infórmenos por esta vía. De
acuerdo con la LOPD, le informamos que sus datos personales y dirección de
correo electrónico forman parte de un fichero, cuyo responsable es TORO
DEVELOPMENT S.L., siendo la finalidad del fichero, la gestión de carácter
comercial y el envío de comunicaciones comerciales sobre nuestros productos
y/o servicios. Si lo desea, podrá usted ejercitar los derechos de acceso,
rectificación, cancelación y oposición de sus datos enviando un mensaje a
la siguiente dirección de correo electrónico a *cont...@toro-eu.com
<cont...@toro-eu.com>*, indicando en la línea de “Asunto” el derecho que
desea ejercitar.

Reply via email to