[ https://issues.apache.org/jira/browse/CAMEL-9517?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Franz Forsthofer closed CAMEL-9517. ----------------------------------- Resolution: Resolved Wiki updated > Validator Component: add clearCachedSchema method to ValidatorEndpoint > ---------------------------------------------------------------------- > > Key: CAMEL-9517 > URL: https://issues.apache.org/jira/browse/CAMEL-9517 > Project: Camel > Issue Type: Improvement > Components: camel-core > Affects Versions: 2.17.0 > Reporter: Franz Forsthofer > Assignee: Franz Forsthofer > Fix For: 2.17.0 > > Attachments: > 0001-ValidatorEndpoint-method-clearCachedSchema-added.patch > > > Currently the ValidatorProcessor caches an object representation of the > schema and there is no possibility to invalidate the cache. This improvement > introduces the method clearCachedSchema on the Validator Endpoint with which > the cached schema is cleared so that on the next call the schema is reread. > The method is annotated with @ManagedOperation so that it can be called from > the JMX console. > The method can be used to update the schema in the endpoint when the > underlying schema file has changed. For example, you can implement a custom > class resolver which reads the schema file from a data base; whenever the > schema file is changed in the data base, then you can update the cached > schema with the above method without restarting the camel route. > A similar method exists for the XSLT component. See method > XsltEndpoint.clearCachedStylesheet. -- This message was sent by Atlassian JIRA (v6.3.4#6332)