camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Max Bridgewater <max.bridgewa...@gmail.com>
Subject Re: Multiple CamelContext and Swagger
Date Tue, 30 Sep 2014 17:31:53 GMT
Hi Charles,

Thanks for your input. We use multiple camel contexts to modularize the
application further into simpler units and so separate different concerns.
In some other cases we also have camel context loaded dynamically which is
an ever bigger challenge to get working with camel-swagger.

Thanks,
Max



On Tue, Sep 30, 2014 at 1:08 PM, Charles Moulliard <ch007m@gmail.com> wrote:

> Hi Max,
>
> Your assertion is correct. The camel-swagger component loads only one
> CamelContext as defined within the code of this class
> (ServletListenerRestSwaggerApiDeclarationServlet). it will load the
> "CamelContext" registered within the ServletContext --> val obj =
> config.getServletContext.getAttribute("CamelContext")
>
> Question : Why would you like to have more than one CamelContext / war ?
>
> Regards,
>
> On Tue, Sep 30, 2014 at 6:53 PM, Max Bridgewater <
> max.bridgewater@gmail.com>
> wrote:
>
> > Hi,
> >
> > It seems that camel-swagger is built to load only one CamelContext. Is my
> > understanding correct?
> > If yes, what would be the best way to support an application with
> multiple
> > camel contexts?
> >
> > Obviously one way is to create a swagger Servlet for each camel context.
> Is
> > there a cleaner way?
> >
> >
> > Regards,
> > Max.
> >
>
>
>
> --
> Charles Moulliard
> Apache Committer / Architect @RedHat
> Twitter : @cmoulliard | Blog :  http://cmoulliard.github.io
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message