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
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
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,
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
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
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
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
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
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 =