You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@synapse.apache.org by ru...@apache.org on 2009/04/01 21:48:32 UTC

svn commit: r761027 - /synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/Axis2SynapseController.java

Author: ruwan
Date: Wed Apr  1 19:48:32 2009
New Revision: 761027

URL: http://svn.apache.org/viewvc?rev=761027&view=rev
Log:
reformatting

Modified:
    synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/Axis2SynapseController.java

Modified: synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/Axis2SynapseController.java
URL: http://svn.apache.org/viewvc/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/Axis2SynapseController.java?rev=761027&r1=761026&r2=761027&view=diff
==============================================================================
--- synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/Axis2SynapseController.java (original)
+++ synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/Axis2SynapseController.java Wed Apr  1 19:48:32 2009
@@ -180,9 +180,8 @@
         try {
             configurationContext.getAxisConfiguration().addParameter(synapseEnvironmentParameter);
         } catch (AxisFault e) {
-            handleFatal("Could not set parameters '" + SynapseConstants.SYNAPSE_CONFIG +
-                    "' and/or '" + SynapseConstants.SYNAPSE_ENV +
-                    "'to the Axis2 configuration : " + e.getMessage(), e);
+            handleFatal("Could not set parameter '" + SynapseConstants.SYNAPSE_ENV +
+                    "' to the Axis2 configuration : " + e.getMessage(), e);
 
         }
         synapseEnvironment.setInitialized(true);
@@ -224,8 +223,7 @@
 
         } catch (AxisFault e) {
             handleFatal("Could not set parameters '" + SynapseConstants.SYNAPSE_CONFIG +
-                    "' and/or '" + SynapseConstants.SYNAPSE_ENV +
-                    "'to the Axis2 configuration : " + e.getMessage(), e);
+                    "' to the Axis2 configuration : " + e.getMessage(), e);
         }
         return synapseConfiguration;
     }
@@ -280,9 +278,9 @@
      *
      * @throws AxisFault For any in setup
      */
-    private void setupMainMediation() throws AxisFault {
+    private void setupMessageMediation() throws AxisFault {
 
-        log.info("Deploying the Synapse service..");
+        log.info("Deploying the Synapse service...");
         // Dynamically initialize the Synapse Service and deploy it into Axis2
         AxisConfiguration axisCfg = configurationContext.getAxisConfiguration();
         AxisService synapseService = new AxisService(SynapseConstants.SYNAPSE_SERVICE_NAME);
@@ -293,6 +291,7 @@
         List<String> transports = new ArrayList<String>();
         transports.add(Constants.TRANSPORT_HTTP);
         transports.add(Constants.TRANSPORT_HTTPS);
+        // todo: is this correct? this limits the message mediation to http/s
         synapseService.setExposedTransports(transports);
         axisCfg.addService(synapseService);
     }
@@ -310,6 +309,7 @@
                 thisServerName = "localhost";
             }
         }
+
         for (ProxyService proxy : synapseConfiguration.getProxyServices()) {
 
             // start proxy service if either,
@@ -335,7 +335,7 @@
 
     private void setupSynapse() throws AxisFault {
         addServerIPAndHostEnrties();
-        setupMainMediation();
+        setupMessageMediation();
         setupProxyServiceMediation();
         setupEventSources();
     }