synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@apache.org
Subject svn commit: r576329 - in /webservices/synapse/trunk/java: modules/core/src/main/java/org/apache/synapse/core/axis2/MediatorDeployer.java modules/core/src/main/java/org/apache/synapse/core/axis2/SynapseModule.java repository/conf/axis2.xml
Date Mon, 17 Sep 2007 09:36:12 GMT
Author: ruwan
Date: Mon Sep 17 02:36:11 2007
New Revision: 576329

URL: http://svn.apache.org/viewvc?rev=576329&view=rev
Log:
Finishing up the module this will be commented by default and can be uncommented to enable
hotdeployment of mediators

Modified:
    webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/core/axis2/MediatorDeployer.java
    webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/core/axis2/SynapseModule.java
    webservices/synapse/trunk/java/repository/conf/axis2.xml

Modified: webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/core/axis2/MediatorDeployer.java
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/core/axis2/MediatorDeployer.java?rev=576329&r1=576328&r2=576329&view=diff
==============================================================================
--- webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/core/axis2/MediatorDeployer.java
(original)
+++ webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/core/axis2/MediatorDeployer.java
Mon Sep 17 02:36:11 2007
@@ -130,13 +130,15 @@
                     Class serClass = urlCl.loadClass(serClassName[i]);
                     MediatorSerializer serInst = (MediatorSerializer) serClass.newInstance();
                     MediatorSerializerFinder.getInstance()
-                            .getSerializerMap().put(serInst.getMediatorClassName(), serClass);
+                            .getSerializerMap().put(serInst.getMediatorClassName(), serInst);
                     log.info("Mediator loaded and registered for " +
                             "the serialization as: " + serInst.getMediatorClassName());
                 }
             } else {
-                handleException("Unable to find the MediatorSerializer implementation. "
+
-                        "Unable to register the MediatorSerializer with the SerializerFinder");
+                if (log.isDebugEnabled()) {
+                    log.debug("Unable to find the MediatorSerializer implementation. " +
+                            "Unable to register the MediatorSerializer with the SerializerFinder");
+                }
             }
 
         } catch (IOException e) {

Modified: webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/core/axis2/SynapseModule.java
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/core/axis2/SynapseModule.java?rev=576329&r1=576328&r2=576329&view=diff
==============================================================================
--- webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/core/axis2/SynapseModule.java
(original)
+++ webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/core/axis2/SynapseModule.java
Mon Sep 17 02:36:11 2007
@@ -20,10 +20,12 @@
 package org.apache.synapse.core.axis2;
 
 import org.apache.axis2.AxisFault;
+import org.apache.axis2.deployment.DeploymentEngine;
 import org.apache.axis2.addressing.AddressingConstants;
 import org.apache.axis2.context.ConfigurationContext;
 import org.apache.axis2.description.*;
 import org.apache.axis2.engine.AxisConfiguration;
+import org.apache.axis2.engine.AxisConfigurator;
 import org.apache.axis2.modules.Module;
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
@@ -77,7 +79,11 @@
             }
         } catch (UnknownHostException e) {
             log.warn("Unable to report hostname or IP address for tracing", e);
-        }   
+        }
+
+        // this will deploy the mediators in the mediator extensions folder
+        configurationContext.getAxisConfiguration().getConfigurator().loadServices();
+
         // Initializing the SynapseEnvironment and SynapseConfiguration
         log.info("Initializing the Synapse configuration ...");
         synCfg = initializeSynapse(configurationContext);

Modified: webservices/synapse/trunk/java/repository/conf/axis2.xml
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/repository/conf/axis2.xml?rev=576329&r1=576328&r2=576329&view=diff
==============================================================================
--- webservices/synapse/trunk/java/repository/conf/axis2.xml (original)
+++ webservices/synapse/trunk/java/repository/conf/axis2.xml Mon Sep 17 02:36:11 2007
@@ -74,11 +74,8 @@
     <!-- Following parameter will completely disable REST handling in Axis2-->
     <parameter name="disableREST" locked="true">false</parameter>
 
-    <!--POJO deployer , this will alow users to drop .class file and make that into a
service-->
-    <deployer extension=".class" directory="pojo" class="org.apache.axis2.deployment.POJODeployer"/>
-
-    <!-- Mediator deployer -->
-    <deployer extension="jar" directory="mediators" class="org.apache.synapse.core.axis2.MediatorDeployer"/>
+    <!-- Mediator deployer ***** Uncomment the following line to enable hot deployment
of mediators ***** -->
+    <!--<deployer extension="jar" directory="mediators" class="org.apache.synapse.core.axis2.MediatorDeployer"/>-->
 
     <!-- Following parameter will set the host name for the epr-->
     <!--<parameter name="hostname" locked="true">myhost.com</parameter>-->



---------------------------------------------------------------------
To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: synapse-dev-help@ws.apache.org


Mime
View raw message