[ https://issues.apache.org/jira/browse/CAMEL-2976?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13054833#comment-13054833 ]
Claus Ibsen commented on CAMEL-2976: ------------------------------------ You can use the LifecycleStrategy and you have listeners when routes is added/remove. Then you can just marshal the route to XML using the JAXB APIs. > we should have a way to save updated routes to an XML directory somewhere so > if folks update routes at runtime they can save them on disk & move them into > source control > ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- > > Key: CAMEL-2976 > URL: https://issues.apache.org/jira/browse/CAMEL-2976 > Project: Camel > Issue Type: Improvement > Components: camel-core, camel-web > Affects Versions: 2.4.0 > Reporter: james strachan > Fix For: Future > > > we should be able to add some kind of listener to camel-web so that as routes > are changed at runtime, we can save the updated routes as an XML file > somewhere so that folks can permanently store changed routes back in their > source code if they want. > e.g. we could add some kind of CamelContextAware listener which on change of > a route adds/updates/removes an XML file from a known directory - using maybe > ${routeId}.xml as the filename? -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira