I am working on a mule project where all my configurations are stored in a central repository, and at run-time am downloading the configuration and deploying it.
<script:component doc:name="Script">
<script:script engine="groovy">
<![CDATA[
String endpnt = reqUrl.prepareFile(requestUrl);
message.setProperty('endpnt', endpnt,org.mule.api.transport.PropertyScope.INVOCATION);
message.setProperty('port', reqUrl.getPort(),org.mule.api.transport.PropertyScope.INVOCATION);
] ]>
</script:script>
</script:component>
The above script downloads the file and makes an entry in mule-deploy.properties against config.resources. I have already set redeployment.enabled=true, but still the endpoint is not available to consume, Please help
If you are using this Groovy script as an inline in your Mule XML and you make any change in your XML and save it there, the server will redeployed the app as soon as it will find a change in XML.
But it will not happen if you will use an external file for Groovy script