Re: Removing and reloading Rests XML Definitions dynamically

2016-06-08 Thread jmandawg
So the real problem is, after the app starts I have like 3 RestConfigurations (jetty, netty-http, restlet) and when i call: List routeDefs = xmlDef.asRouteDefinition(camelContext, getContext().getRestConfiguration()); It creates a route for each RestConfiguration, which is not what i want. I o

Re: Removing and reloading Rests XML Definitions dynamically

2016-06-08 Thread jmandawg
It seems For some reason RouteBuilder does not check the camelContext for existing restConfiguration before it goes and creates it's own resulting in multple restConfigurations. #RouteBuilder public RestConfigurationDefinition restConfiguration(String component) { if (restConfigurations

Removing and reloading Rests XML Definitions dynamically

2016-06-08 Thread jmandawg
Hi, I'm trying to remove and reload rest definitions from xml using camel 2.17.1. I have the following code to load them (stolen from camel-spring-boot): for(String restRoutePath : restRoutePaths) { try{ RestsDefinition rd = camelContext.loadRestsDefinition(appContext.g

RE: Xquery endpoing with Import Module

2011-07-29 Thread jmandawg
rom class path. On 7/29/11 1:04 AM, jmandawg wrote: > Hi all, > > I'm trying to use an XQuery endpoint which looks like this: > > > > Where "com/test/xquery/manual.xq" is located in my "src/main/resources" > folder. > > When

RE: Xquery endpoing with Import Module

2011-07-29 Thread jmandawg
camel-saxon will create a input stream to load the xquery file. I think it's more like saxon issue, saxon should support to load the file from class path. On 7/29/11 1:04 AM, jmandawg wrote: > Hi all, > > I'm trying to use an XQuery endpoint which looks like this: >

Xquery endpoing with Import Module

2011-07-28 Thread jmandawg
Hi all, I'm trying to use an XQuery endpoint which looks like this: Where "com/test/xquery/manual.xq" is located in my "src/main/resources" folder. When i try to put an import inside the manual.xq file like this: import module namespace utils = "myutils" at "utils.xq"; It cannot resolve the