From 273c1e4c81826151017bc98e4e4d10245995cf8c Mon Sep 17 00:00:00 2001 From: malakaganga Date: Tue, 3 Oct 2023 15:16:08 +0530 Subject: [PATCH] Fix mismatch in axis service and proxy(synapse) service state For MI we have introduced this feature using a DeploymentInterceptor. But to enable that we have to add the following service parameter to the proxy true But there is an issue with MI where it does not properly propagate this state since be due to a mismatch in axis service and proxy(synapse) service state. Fixes: https://github.com/wso2/micro-integrator/issues/2981 --- .../main/java/org/apache/synapse/core/axis2/ProxyService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/core/src/main/java/org/apache/synapse/core/axis2/ProxyService.java b/modules/core/src/main/java/org/apache/synapse/core/axis2/ProxyService.java index 645ac58efa..5b1967b01d 100644 --- a/modules/core/src/main/java/org/apache/synapse/core/axis2/ProxyService.java +++ b/modules/core/src/main/java/org/apache/synapse/core/axis2/ProxyService.java @@ -798,7 +798,7 @@ public AxisService buildAxisService(SynapseConfiguration synCfg, AxisConfigurati axisCfg.addServiceToExistingServiceGroup(axisService, serviceGroup); } } - this.setRunning(true); + this.setRunning(axisService.isActive()); } catch (AxisFault axisFault) { try { if (axisCfg.getService(axisService.getName()) != null) {