You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2018/02/01 14:54:00 UTC

[jira] [Commented] (CAMEL-12052) MBean method addOrUpdateRoutesFromXml should validate route XML

    [ https://issues.apache.org/jira/browse/CAMEL-12052?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16348682#comment-16348682 ] 

Claus Ibsen commented on CAMEL-12052:
-------------------------------------

Also this JMX operation is for devlopment and not production usage, you should not update any running routes in live production.

> MBean method addOrUpdateRoutesFromXml should validate route XML
> ---------------------------------------------------------------
>
>                 Key: CAMEL-12052
>                 URL: https://issues.apache.org/jira/browse/CAMEL-12052
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core, jmx
>            Reporter: James Netherton
>            Priority: Minor
>
> With JMX you can invoke the addOrUpdateRoutesFromXml method to change a route definition.
> The old route is removed before the new one is added. This is a problem if the provided route XML definition is not valid. In this case, the new route will not be created, but the old one has already been removed. So things are left in a dirty state,
> We should check to see whether the updated route is valid before attempting to remove it.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)