Re: Camel spring DSL validaiton

2018-11-20 Thread Gandhi, Vineet
Hi Zoran, Thanks for prompt reply. This works for me. Regards, Vineet On 20/11/18, 4:17 PM, "Zoran Regvart" wrote: Hi Vineet, you could gather all `RouteDefinition` objects from that `RoutesDefinition` you get from `CamelContext::loadRoutesDefinition`, use

using springdsl instead of javadsl with file path

2018-11-20 Thread Wang Yan
using springdsl instead of javadsl, below is the example from camel website, is it possible to use file instead of classpath for configuration? for example camel.springboot.xmlRoutes = file:/com/foo/routes/*.xml any suggestions and hints are more than welcome! // turn off

Re: using springdsl instead of javadsl with file path

2018-11-20 Thread Gandhi, Vineet
Hi wang, Yes we can give file paths for picking up routes during startup too. camel.springboot.xmlRoutes = on camel.springboot.xmlRoutes = file://x/xxx/*.xml I tested in my local and its working. Regards, Vineet On 20/11/18, 3:24 PM, "Wang Yan" wrote: using springdsl

Re: Camel spring DSL validaiton

2018-11-20 Thread Zoran Regvart
Hi Vineet, you could gather all `RouteDefinition` objects from that `RoutesDefinition` you get from `CamelContext::loadRoutesDefinition`, use `RouteDefinitionHelper::gatherAllEndpointUris` to fetch all endpoint URIs of that `RouteDefinition` and then try to resolve those endpoints via

Camel spring DSL validaiton

2018-11-20 Thread Gandhi, Vineet
Hi, I have a use case where clients can send route xml files to my service which I add to camelContext Code for adding route looks like : public void createRoute(InputStream xmlRouteDefinition) throws Exception { RoutesDefinition routesDefinition =

to uri cxf endpoint in springdsl problem for SpringBoot+Camel

2018-11-20 Thread Wang Yan
when i use SpringDSL under SpringBoot, i should only use routes in xml not camelContext, since springboot will take care of cameContext when i convert my javaDSL to below SpringDSL the to uri cxf endpoint below does not work , it used to work with javadsl

Re: Camel CXFRS and Swagger/OpenAPI Feature

2018-11-20 Thread Zoran Regvart
Hi Jens, from the little exploration I did I think you need to set `performInvocation` to `true`: the way OpenAPI support in CXF works is by registering a resource that will generate the OpenAPI specification, and that JAX-RS resource class[1] has an `getOpenApi` method. So your routes need to

Re: Camel CXFRS and Swagger/OpenAPI Feature

2018-11-20 Thread #S-SmixDev
Hi Zoran, yeah, I suspected that might be the way it's supposed to work, but the problem here of course is that I don't actually have a ResourceImpl of my real service, only an interface, and therefore performInvocation doesn't work for me unless I write a Dummy implementation, too. Cheers,

Re: Camel CXFRS and Swagger/OpenAPI Feature

2018-11-20 Thread Sergey Beryozkin
As far as I recall, a corresponding CXF filter is a blocking one and returns a JAX-RS Response. May be the CamelCXF RS code needs to be tweaked a bit to check if JAX-RS Response is already available before continuing with the route flow... Cheers, Sergey On Tue, Nov 20, 2018 at 5:20 PM