diff --git a/modules/core/src/main/java/org/apache/synapse/deployers/LocalEntryDeployer.java b/modules/core/src/main/java/org/apache/synapse/deployers/LocalEntryDeployer.java index 124e174fc9..0fde2e77c7 100644 --- a/modules/core/src/main/java/org/apache/synapse/deployers/LocalEntryDeployer.java +++ b/modules/core/src/main/java/org/apache/synapse/deployers/LocalEntryDeployer.java @@ -111,8 +111,8 @@ private void deployEndpointsForHTTPConnection(OMElement artifactConfig, String f artifactConfig.getFirstChildWithName( new QName(SynapseConstants.SYNAPSE_NAMESPACE, HTTP_CONNECTION_IDENTIFIER)); if (httpInitElement != null) { - OMElement documentElement = generateHTTPEndpointOMElement(httpInitElement); - deployHTTPEndpointForElement(documentElement, fileName, properties); + OMElement generatedEndpointElement = generateHTTPEndpointOMElement(httpInitElement); + deployHTTPEndpointForElement(generatedEndpointElement, fileName, properties); } } @@ -127,7 +127,7 @@ private void deployHTTPEndpointForElement(OMElement documentElement, String file ep.setFileName((new File(fileName)).getName()); if (log.isDebugEnabled()) { log.debug("Endpoint named '" + ep.getName() - + "' has been built from the file " + fileName); + + "' has been built from the http connection file " + fileName); } ep.init(getSynapseEnvironment()); if (log.isDebugEnabled()) { @@ -135,16 +135,16 @@ private void deployHTTPEndpointForElement(OMElement documentElement, String file } getSynapseConfiguration().addEndpoint(ep.getName(), ep); if (log.isDebugEnabled()) { - log.debug("Endpoint Deployment from file : " + fileName + " : Completed"); + log.debug("Endpoint Deployment from the http connection file : " + fileName + " : Completed"); } log.info("Endpoint named '" + ep.getName() - + "' has been deployed from file : " + fileName); + + "' has been deployed from the http connection file : " + fileName); } else { handleSynapseArtifactDeploymentError("Endpoint Deployment Failed. The artifact " + - "described in the file " + fileName + " is not an Endpoint"); + "described in the http connection file " + fileName + " has filed to describe an Endpoint"); } } catch (Exception e) { - handleSynapseArtifactDeploymentError("Endpoint Deployment from the file : " + handleSynapseArtifactDeploymentError("Endpoint Deployment from the http connection file : " + fileName + " : Failed.", e); } }