Hi Okay got the JMX done, so in Camel 2.15 onwards, it should work out of the box.
On Thu, Dec 18, 2014 at 7:21 AM, Claus Ibsen <claus.ib...@gmail.com> wrote: > Hi > > I logged a ticket to use jmx instead which means it would work for > anyone. At first glance it looks as that should be doable. > https://issues.apache.org/jira/browse/CAMEL-8161 > > On Thu, Dec 18, 2014 at 7:17 AM, Claus Ibsen <claus.ib...@gmail.com> wrote: >> Hi >> >> Currently only spring is supported out of the box. You would need to >> implement a custom code to lookup the camel contexts from cdi >> >> eg something like this but for cdi >> https://github.com/apache/camel/blob/master/components/camel-swagger/src/main/scala/org/apache/camel/component/swagger/spring/SpringRestSwaggerApiDeclarationServlet.scala >> >> We love contributions so if you get something working you are welcome >> to contribute back >> http://camel.apache.org/contributing.html >> >> On Wed, Dec 17, 2014 at 8:20 PM, cristianmiranda <cris...@gmail.com> wrote: >>> Hi guys, >>> >>> I'm new to swagger and I want to configure it in my *CDI* application (no >>> Spring at all). >>> I'm following the pet shop example and this specific one: >>> https://github.com/apache/camel/tree/master/examples/camel-example-servlet-rest-tomcat >>> just changing from *SpringRestSwaggerApiDeclarationServlet* to >>> *ServletListenerRestSwaggerApiDeclarationServlet* >>> The rest of the configuration is exactly the same but I can't make it work >>> yet. When requesting localhost:8080/api-docs it just doesn't display >>> anything (no errors). >>> >>> Is there any extra configuration that it's required by using >>> ServletListenerRestSwaggerApiDeclarationServlet? >>> >>> Any ideas? >>> >>> Thanks in advance >>> >>> >>> >>> -- >>> View this message in context: >>> http://camel.465427.n5.nabble.com/Camel-REST-Swagger-configuration-tp5760839.html >>> Sent from the Camel - Users mailing list archive at Nabble.com. >> >> >> >> -- >> Claus Ibsen >> ----------------- >> Red Hat, Inc. >> Email: cib...@redhat.com >> Twitter: davsclaus >> Blog: http://davsclaus.com >> Author of Camel in Action: http://www.manning.com/ibsen >> hawtio: http://hawt.io/ >> fabric8: http://fabric8.io/ > > > > -- > Claus Ibsen > ----------------- > Red Hat, Inc. > Email: cib...@redhat.com > Twitter: davsclaus > Blog: http://davsclaus.com > Author of Camel in Action: http://www.manning.com/ibsen > hawtio: http://hawt.io/ > fabric8: http://fabric8.io/ -- Claus Ibsen ----------------- Red Hat, Inc. Email: cib...@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen hawtio: http://hawt.io/ fabric8: http://fabric8.io/