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 <[email protected]>
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

Reply via email to