RE: Convert a Spring xml route string in a RouteDefinition

2014-01-29 Thread giacomolm
Hi all, maybe i found the problem. I'm using Java 1.6 and by default the JVM uses jaxb libraries older than 2.2.7: in this way i get the problem discussed above. If i switch JVM, using 1.7, the JVM downloads automatically 2.2.7 jaxb library: in this way the route definition works properly. So th

RE: Convert a Spring xml route string in a RouteDefinition

2014-01-28 Thread giacomolm
Hi, thank you for your reply. I tried and it works! thanks a lot.. However i want to know more: it's possible to set the dafault camel namespace without prepending this kind of string? I saw that JAXB gives the possibility to set predefined namespace in a class: this can be done with a package l

RE: Convert a Spring xml route string in a RouteDefinition

2014-01-26 Thread Ravindra.Godbole
You might want to have a look at the following sample. It does have namespace defined for root element. You can build this string as you like with more child routes. CamelContext context = new DefaultCamelContext(); context.setTracing(true); Strin

Re: Convert a Spring xml route string in a RouteDefinition

2014-01-24 Thread sbo13
Hi, Have a look at http://camel.apache.org/loading-routes-from-xml-files.html -- View this message in context: http://camel.465427.n5.nabble.com/Convert-a-Spring-xml-route-string-in-a-RouteDefinition-tp5746443p5746444.html Sent from the Camel - Users mailing list archive at Nabble.com.