You can use the apis on CamelContext to add new routes / remove routes etc.
However its all standard Java and how you can add dynamic new code to a running JVM is outside the scope of Apache Camel and you need to look elsewhere how to do that. Groovy allows scripting so you can have it load some .groovy source code and compile and run that in an existing JVM. Plain Java code is harder and you likely need some external tooling such as jrebel or what else is out there. But I dont recommend doing so. Try to look at the idea of immutable containers with rolling upgrades/downgrades to change your running applications. On Fri, Apr 7, 2017 at 9:27 AM, Fatima Sajjad <fatimasajjad...@gmail.com> wrote: > Thank you for your reply. > Can you please answer one more question? Is there any way to define or add > new routes in camel context without recompiling the project, Like run time > route addition? Does any of the DSLs (Spring, Scala , Groovy or Java) > provide that ? > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/how-to-enable-Scala-Groovy-route-definition-in-camel-web-console-tp5797121p5797125.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2