synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sami...@apache.org
Subject svn commit: r355858 - in /incubator/synapse/trunk/java: ./ repo/ src/org/apache/synapse/axis2/META-INF/ src/sampleMediators/ synapse-test-resources/axis2/ test/org/apache/synapse/spi/injection/ test/org/apache/synapse/spi/processors/ test/org/apache/sy...
Date Sun, 11 Dec 2005 01:48:56 GMT
Author: saminda
Date: Sat Dec 10 17:48:50 2005
New Revision: 355858

URL: http://svn.apache.org/viewcvs?rev=355858&view=rev
Log:
Cleaning up

Added:
    incubator/synapse/trunk/java/repo/axis2.xml
    incubator/synapse/trunk/java/src/sampleMediators/SampleRouter.java
      - copied, changed from r355792, incubator/synapse/trunk/java/src/sampleMediators/SendOn.java
Removed:
    incubator/synapse/trunk/java/src/org/apache/synapse/axis2/META-INF/
    incubator/synapse/trunk/java/src/sampleMediators/SendOn.java
Modified:
    incubator/synapse/trunk/java/maven.xml
    incubator/synapse/trunk/java/synapse-test-resources/axis2/axis2.xml
    incubator/synapse/trunk/java/test/org/apache/synapse/spi/injection/SendOnProcessorWithRuleTest.java
    incubator/synapse/trunk/java/test/org/apache/synapse/spi/processors/AddressingProcessorTest.java
    incubator/synapse/trunk/java/test/org/apache/synapse/spi/processors/Axis2MediatorProcessorTest.java
    incubator/synapse/trunk/java/test/org/apache/synapse/spi/processors/BulitinProcessorTest.java
    incubator/synapse/trunk/java/test/org/apache/synapse/spi/processors/ClassMediatorProcessorTest.java
    incubator/synapse/trunk/java/test/org/apache/synapse/spi/processors/RegexProcessorTest.java
    incubator/synapse/trunk/java/test/org/apache/synapse/util/Axis2EvnSetup.java
    incubator/synapse/trunk/java/test/rules/synapse-sendon.xml

Modified: incubator/synapse/trunk/java/maven.xml
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/java/maven.xml?rev=355858&r1=355857&r2=355858&view=diff
==============================================================================
--- incubator/synapse/trunk/java/maven.xml (original)
+++ incubator/synapse/trunk/java/maven.xml Sat Dec 10 17:48:50 2005
@@ -42,15 +42,6 @@
         <ant:mkdir dir="${basedir}/target/lib"/>
         <deploy:copy-deps todir="${basedir}/target/lib"/>
 
-        <echo message="----------------Creating synapse.mar----------------"/>
-        <mkdir dir="target/modules/synapse/META-INF"/>
-        <copy file="src/org/apache/synapse/axis2/META-INF/module.xml"
-              tofile="target/modules/synapse/META-INF/module.xml"/>
-        <jar jarfile="target/synapse.mar"
-             basedir="target/modules/synapse">
-            <include name="**"/>
-        </jar>
-
         <echo message="----------------Creating First Dispatching aar----------------"/>
         <mkdir dir="target/services/synapse/META-INF"/>
         <copy file="synapse-test-resources/axis2/services/synapse/META-INF/services.xml"
@@ -102,8 +93,6 @@
             <copy file="target/emptymediator.aar"
                   tofile="target/synapse-repository-sendon/services/emptymediator.aar"/>
             <mkdir dir="target/synapse-repository-sendon/modules"/>
-            <copy file="target/synapse.mar"
-                  tofile="target/synapse-repository-sendon/modules/synapse.mar"/>
             <copy file="synapse-test-resources/axis2/modules/addressing.mar"
                   tofile="target/synapse-repository-sendon/modules/addressing.mar"/>
             <copy file="synapse-test-resources/axis2/axis2.xml"
@@ -121,7 +110,7 @@
 
             <copy file="synapse-test-resources/axis2/modules/addressing.mar"
                   tofile="target/synapse-repository-sendonAxis2/modules/addressing.mar"/>
-            <copy file="synapse-test-resources/axis2/axis2.xml"
+            <copy file="repo/axis2.xml"
                   tofile="target/synapse-repository-sendonAxis2/axis2.xml"/>
 
             <ant:delete file="target/npe.aar"/>
@@ -137,8 +126,6 @@
         <copy file="target/emptymediator.aar"
               tofile="target/synapse-repository/services/emptymediator.aar"/>
         <mkdir dir="target/synapse-repository/modules"/>
-        <copy file="target/synapse.mar"
-              tofile="target/synapse-repository/modules/synapse.mar"/>
         <copy file="synapse-test-resources/axis2/modules/addressing.mar"
               tofile="target/synapse-repository/modules/addressing.mar"/>
         <copy file="synapse-test-resources/axis2/axis2.xml"
@@ -153,8 +140,6 @@
         <copy file="target/emptymediator.aar"
               tofile="target/synapse-repository-fault/services/emptymediator.aar"/>
         <mkdir dir="target/synapse-repository-fault/modules"/>
-        <copy file="target/synapse.mar"
-              tofile="target/synapse-repository-fault/modules/synapse.mar"/>
         <copy file="synapse-test-resources/axis2/modules/addressing.mar"
               tofile="target/synapse-repository-fault/modules/addressing.mar"/>
         <copy file="synapse-test-resources/axis2/axis2.xml"
@@ -169,12 +154,10 @@
         <copy file="target/emptymediator.aar"
               tofile="target/synapse-repository-send/services/emptymediator.aar"/>
         <mkdir dir="target/synapse-repository-send/modules"/>
-        <copy file="target/synapse.mar"
-              tofile="target/synapse-repository-send/modules/synapse.mar"/>
         <copy file="synapse-test-resources/axis2/modules/addressing.mar"
               tofile="target/synapse-repository-send/modules/addressing.mar"/>
-        <copy file="synapse-test-resources/axis2/axis2.xml"
-              tofile="target/synapse-repository-send/axis2.xml"/>
+        <copy file="repo/axis2.xml"
+                  tofile="target/synapse-repository-sendonAxis2/axis2.xml"/>
         <copy file="test/rules/synapse-send.xml"
               tofile="target/synapse-repository-send/synapse.xml"/>
 
@@ -184,7 +167,6 @@
         <ant:delete dir="target/services"/>
         <ant:delete file="target/emptymediator.aar"/>
         <ant:delete file="target/synapse.aar"/>
-        <ant:delete file="target/synapse.mar"/>
 
 
 
@@ -252,7 +234,7 @@
                   tofile="${bin.dist.dir}/bin/synapse-lightweight.sh"/>
 
         <ant:copy todir="${bin.dist.dir}/synapse_repository">
-            <ant:fileset dir="target/synapse-repository-send/">
+            <ant:fileset dir="target/synapse-repository/">
                 <include name="**"/>
             </ant:fileset>
         </ant:copy>

Added: incubator/synapse/trunk/java/repo/axis2.xml
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/java/repo/axis2.xml?rev=355858&view=auto
==============================================================================
--- incubator/synapse/trunk/java/repo/axis2.xml (added)
+++ incubator/synapse/trunk/java/repo/axis2.xml Sat Dec 10 17:48:50 2005
@@ -0,0 +1,168 @@
+<axisconfig name="AxisJava2.0">
+    <!-- ================================================= -->
+    <!-- Parameters -->
+    <!-- ================================================= -->
+    <parameter name="hotdeployment" locked="false">true</parameter>
+    <parameter name="hotupdate" locked="false">false</parameter>
+    <parameter name="enableMTOM" locked="false">true</parameter>
+    <!-- Uncomment this to enable REST support -->
+    <!--    <parameter name="enableREST" locked="false">true</parameter>-->
+
+    <parameter name="SynapseConfiguration" locked="false">synapse.xml</parameter>
+
+    <parameter name="userName" locked="false">admin</parameter>
+    <parameter name="password" locked="false">axis2</parameter>
+
+    <parameter name="seralizeLocation" locked="false">.</parameter>
+    <hostConfiguration>
+        <ip>127.0.0.1</ip>
+        <port>5555</port>
+    </hostConfiguration>
+
+
+    <!--if you want to extract the service archive file and work with that please uncomment
this-->
+    <!--else , it wont extract archive file or does not take into consideration if someone
drop-->
+    <!--exploded directory into /service directory-->
+    <!--<parameter name="extractServiceArchive" locked="false">true</parameter>-->
+
+
+    <!--    The way of adding listener to the system-->
+    <!--    <listener class="org.apache.axis2.ObserverIMPL">-->
+    <!--        <parameter name="RSS_URL" locked="false">http://127.0.0.1/rss</parameter>-->
+    <!--    </listener>-->
+
+    <!-- ================================================= -->
+    <!-- Message Receivers -->
+    <!-- ================================================= -->
+    <!-- This is the Deafult Message Receiver for the Request Response style Operations
-->
+    <messageReceiver mep="INOUT" class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
+
+    <!-- ================================================= -->
+    <!-- Transport Ins -->
+    <!-- ================================================= -->
+    <transportReceiver name="http" class="org.apache.axis2.transport.http.SimpleHTTPServer">
+        <parameter name="port" locked="false">6060</parameter>
+    </transportReceiver>
+
+    <!-- Uncomment this one with the appropriate papameters to enable the SMTP transport
Receiver
+    <transportReceiver name="mail" class="org.apache.axis2.transport.mail.SimpleMailListener">
+          <parameter name="transport.mail.pop3.host" locked="false">127.0.0.1</parameter>
+          <parameter name="transport.mail.pop3.user" locked="false">axis2</parameter>
+          <parameter name="transport.mail.pop3.password" locked="false">axis2</parameter>
+          <parameter name="transport.mail.pop3.port" locked="false">110</parameter>
+          <parameter name="transport.mail.replyToAddress" locked="false">axis2@127.0.0.1</parameter>
+      </transportReceiver> -->
+
+    <transportReceiver name="tcp" class="org.apache.axis2.transport.tcp.TCPServer">
+        <parameter name="port" locked="false">6060</parameter>
+    </transportReceiver>
+
+    <!--<transportReceiver name="jms" class="org.apache.axis2.transport.jms.SimpleJMSListener">-->
+        <!--<parameter name="transport.jms.Destination" locked="false">dynamicQueues/FOO</parameter>-->
+        <!--<parameter name="java.naming.factory.initial" locked="false">org.activemq.jndi.ActiveMQInitialContextFactory</parameter>-->
+        <!--<parameter name="java.naming.provider.url" locked="false">tcp://localhost:61616</parameter>-->
+    <!--</transportReceiver>-->
+
+    <!-- ================================================= -->
+    <!-- Transport Outs -->
+    <!-- ================================================= -->
+
+    <transportSender name="tcp" class="org.apache.axis2.transport.tcp.TCPTransportSender"/>
+    <transportSender name="local" class="org.apache.axis2.transport.local.LocalTransportSender"/>
+    <!--<transportSender name="jms" class="org.apache.axis2.transport.jms.JMSSender"/>-->
+    <transportSender name="http" class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
+        <parameter name="PROTOCOL" locked="false">HTTP/1.1</parameter>
+        <!--<parameter name="PROXY" proxy_host="smecube" proxy_port="3128" locked="true">anonymous:anonymous:anonymous</parameter>-->
+    </transportSender>
+    <transportSender name="https"
+                     class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
+        <parameter name="PROTOCOL" locked="false">HTTP/1.1</parameter>
+    </transportSender>
+
+    <!-- Uncomment this one with the appropriate papameters to enable the SMTP transport
Receiver
+   <transportSender name="mailto" class="org.apache.axis2.transport.mail.MailTransportSender">
+       <parameter name="transport.mail.smtp.host" locked="false">127.0.0.1</parameter>
+       <parameter name="transport.mail.smtp.user" locked="false">axis2</parameter>
+       <parameter name="transport.mail.smtp.password" locked="false">axis2</parameter>
+       <parameter name="transport.mail.smtp.port" locked="false">25</parameter>
+   </transportSender>
+   -->
+
+    <!-- ================================================= -->
+    <!-- Global Modules  -->
+    <!-- ================================================= -->
+    <!-- Comment this to disable Addressing -->
+    <!--<module ref="addressing"/>-->
+
+
+    <!--Configuring module , providing parameters for modules whether they refer or not-->
+    <!--<moduleConfig name="addressing">-->
+    <!--<parameter name="addressingPara" locked="false">N/A</parameter>-->
+    <!--</moduleConfig>-->
+
+    <!-- ================================================= -->
+    <!-- Phases  -->
+    <!-- ================================================= -->
+    <phaseOrder type="inflow">
+        <!--  System pre defined phases       -->
+        <phase name="TransportIn"/>
+        <phase name="PreDispatch"/>
+        <phase name="Dispatch">
+            <handler name="AddressingBasedDispatcher"
+                     class="org.apache.axis2.engine.AddressingBasedDispatcher">
+                <order phase="Dispatch"/>
+            </handler>
+
+             <handler name="RequestURIBasedDispatcher"
+                     class="org.apache.axis2.engine.RequestURIBasedDispatcher">
+                <order phase="Dispatch"/>
+            </handler>
+
+            <handler name="SOAPActionBasedDispatcher"
+                     class="org.apache.axis2.engine.SOAPActionBasedDispatcher">
+                <order phase="Dispatch"/>
+            </handler>
+
+             <handler name="SOAPMessageBodyBasedDispatcher"
+                     class="org.apache.axis2.engine.SOAPMessageBodyBasedDispatcher">
+                <order phase="Dispatch"/>
+            </handler>
+        </phase>
+        <phase name="PostDispatch">
+             <handler name="DispatchPostConditionsEvaluator"
+                     class="org.apache.axis2.engine.DispatchingChecker">
+                <order phase="PostDispatch"/>
+            </handler>
+            <handler name="InstanceDispatcher"
+                     class="org.apache.axis2.engine.InstanceDispatcher">
+                <order phase="PostDispatch"/>
+            </handler>
+            <handler name="SOAPProcessingModelChecker"
+                     class="org.apache.axis2.engine.SOAPProcessingModelChecker">
+                <order phase="PostDispatch"/>
+            </handler>
+        </phase>
+        <!--  System pre defined phases       -->
+        <!--   After Postdispatch phase module author or or service author can add any
phase he want      -->
+        <phase name="userphase1"/>
+    </phaseOrder>
+    <phaseOrder type="outflow">
+        <!--      user can add his own phases to this area  -->
+        <phase name="userphase1"/>
+        <!--system predefined phase-->
+        <!--these phase will run irrespective of the service-->
+        <phase name="PolicyDetermination"/>
+        <phase name="MessageOut"/>
+    </phaseOrder>
+    <phaseOrder type="INfaultflow">
+        <!--      user can add his own phases to this area  -->
+        <phase name="userphase1"/>
+    </phaseOrder>
+    <phaseOrder type="Outfaultflow">
+        <!--      user can add his own phases to this area  -->
+        <phase name="userphase1"/>
+        <phase name="PolicyDetermination"/>
+        <phase name="MessageOut"/>
+    </phaseOrder>
+</axisconfig>
+

Copied: incubator/synapse/trunk/java/src/sampleMediators/SampleRouter.java (from r355792,
incubator/synapse/trunk/java/src/sampleMediators/SendOn.java)
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/java/src/sampleMediators/SampleRouter.java?p2=incubator/synapse/trunk/java/src/sampleMediators/SampleRouter.java&p1=incubator/synapse/trunk/java/src/sampleMediators/SendOn.java&r1=355792&r2=355858&rev=355858&view=diff
==============================================================================
--- incubator/synapse/trunk/java/src/sampleMediators/SendOn.java (original)
+++ incubator/synapse/trunk/java/src/sampleMediators/SampleRouter.java Sat Dec 10 17:48:50
2005
@@ -20,7 +20,7 @@
 *
 */
 
-public class SendOn implements Mediator {
+public class SampleRouter implements Mediator {
     public boolean mediate(SynapseMessage smc) {
         smc.setWSAAction("urn:synapse/sendon");
         smc.setTo(new EndpointReference(

Modified: incubator/synapse/trunk/java/synapse-test-resources/axis2/axis2.xml
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/java/synapse-test-resources/axis2/axis2.xml?rev=355858&r1=355857&r2=355858&view=diff
==============================================================================
--- incubator/synapse/trunk/java/synapse-test-resources/axis2/axis2.xml (original)
+++ incubator/synapse/trunk/java/synapse-test-resources/axis2/axis2.xml Sat Dec 10 17:48:50
2005
@@ -1,140 +1,173 @@
 <axisconfig name="AxisJava2.0">
-	<!-- ================================================= -->
-	<!-- Parameters -->
-	<!-- ================================================= -->
-	<parameter name="hotdeployment" locked="false">true</parameter>
-	<parameter name="hotupdate" locked="false">false</parameter>
-	<parameter name="enableMTOM" locked="false">true</parameter>
-	<!-- Uncomment this to enable REST support -->
-	<!--    <parameter name="enableREST" locked="false">true</parameter>-->
-
-
-	<parameter name="userName" locked="false">admin</parameter>
-	<parameter name="password" locked="false">axis2</parameter>
-
-	<parameter name="seralizeLocation" locked="false">.</parameter>
-
-	<parameter name="SynapseConfiguration" locked="false">synapse.xml</parameter>
 
-
-	<!--if you want to extract the service archive file and work with that please uncomment
this-->
-	<!--else , it wont extract archive file or does not take into consideration if someone
drop-->
-	<!--exploded directory into /service directory-->
-	<!--<parameter name="extractServiceArchive" locked="false">true</parameter>-->
-
-
-	<!--    The way of adding listener to the system-->
-	<!--    <listener class="org.apache.axis2.ObserverIMPL">-->
-	<!--        <parameter name="RSS_URL" locked="false">http://127.0.0.1/rss</parameter>-->
-	<!--    </listener>-->
-
-	<!--Registering Axis Storage Class if you comment this default one will -->
-	<!--does the job (org.apache.axis2.storage.impl.AxisMemoryStorage) , if you-->
-	<!--want to register new one write a class by extanding AbastractStorage-->
-	<!--and put that name here-->
-	<axisStorage
-		class="org.apache.axis2.storage.impl.AxisMemoryStorage">
-		<parameter name="StoreLocation" locked="false">N:S</parameter>
-	</axisStorage>
-
-
-
-	<!-- ================================================= -->
-	<!-- Message Receivers -->
-	<!-- ================================================= -->
-	<!-- This is the Deafult Message Receiver for the Request Response style Operations -->
-	<messageReceiver mep="INOUT"
-		class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver" />
-
-	<!-- ================================================= -->
-	<!-- Transport Ins -->
-	<!-- ================================================= -->
-	<transportReceiver name="http"
-		class="org.apache.axis2.transport.http.SimpleHTTPServer">
-		<parameter name="port" locked="false">6060</parameter>
-	</transportReceiver>
-
-	<!-- Uncomment this one with the appropriate papameters to enable the SMTP transport
Receiver
-		<transportReceiver name="mail" class="org.apache.axis2.transport.mail.SimpleMailListener">
-		<parameter name="transport.mail.pop3.host" locked="false">127.0.0.1</parameter>
-		<parameter name="transport.mail.pop3.user" locked="false">axis2</parameter>
-		<parameter name="transport.mail.pop3.password" locked="false">axis2</parameter>
-		<parameter name="transport.mail.pop3.port" locked="false">110</parameter>
-		<parameter name="transport.mail.replyToAddress" locked="false">axis2@127.0.0.1</parameter>
-		</transportReceiver> -->
-
-	<transportReceiver name="tcp"
-		class="org.apache.axis2.transport.tcp.TCPServer">
-		<parameter name="port" locked="false">6060</parameter>
-	</transportReceiver>
-
-	<!-- ================================================= -->
-	<!-- Transport Outs -->
-	<!-- ================================================= -->
-
-	<transportSender name="tcp"
-		class="org.apache.axis2.transport.tcp.TCPTransportSender" />
-	<transportSender name="local"
-		class="org.apache.axis2.transport.local.LocalTransportSender" />
-	<transportSender name="http"
-		class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
-		<parameter name="PROTOCOL" locked="false">HTTP/1.0</parameter>
-	</transportSender>
-	<transportSender name="https"
-		class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
-		<parameter name="PROTOCOL" locked="false">HTTP/1.1</parameter>
-	</transportSender>
-
-	<!-- Uncomment this one with the appropriate papameters to enable the SMTP transport
Receiver
-		<transportSender name="mail" class="org.apache.axis2.transport.mail.MailTransportSender">
-		<parameter name="transport.mail.smtp.host" locked="false">127.0.0.1</parameter>
-		<parameter name="transport.mail.smtp.user" locked="false">axis2</parameter>
-		<parameter name="transport.mail.smtp.password" locked="false">axis2</parameter>
-		<parameter name="transport.mail.smtp.port" locked="false">25</parameter>
-		</transportSender>
-	-->
-
-	<!-- ================================================= -->
-	<!-- Global Modules  -->
-	<!-- ================================================= -->
-	<!-- Comment this to disable Addressing -->
-	<!--  <module ref="addressing" /> -->
-	<!--module ref="addressing" /--> 
-
-
-	<!--Configuring module , providing paramters for modules whether they refer or not-->
-	<!--<moduleConfig name="addressing">-->
-	<!--<parameter name="addressingPara" locked="false">N/A</parameter>-->
-	<!--</moduleConfig>-->
-
-	<dispatchOrder>
-		<dispatcher name="SynapseDispatcher"
-			class="org.apache.synapse.axis2.SynapseDispatcher" />
-	</dispatchOrder>
-
-	<!-- ================================================= -->
-	<!-- Phases  -->
-	<!-- ================================================= -->
-	<phaseOrder type="inflow">
-		<!--  System pre defined phases       -->
-		<phase name="TransportIn" />
-		<phase name="PreDispatch" />
-		<phase name="Dispatch" />
-		<phase name="PostDispatch" />
-		<!--  System pre defined phases       -->
-		<!--   After Postdispatch phase module author or or service author can add any phase
he want      -->
-		<phase name="userphase1" />
-	</phaseOrder>
-	<phaseOrder type="outflow">
-		<!--      user can add his own phases to this area  -->
-		<phase name="userphase1" />
-	</phaseOrder>
-	<phaseOrder type="INfaultflow">
-		<!--      user can add his own phases to this area  -->
-		<phase name="userphase1" />
-	</phaseOrder>
-	<phaseOrder type="Outfaultflow">
-		<!--      user can add his own phases to this area  -->
-		<phase name="userphase1" />
-	</phaseOrder>
+    <!-- ================================================= -->
+    <!-- Parameters -->
+    <!-- ================================================= -->
+    <parameter name="hotdeployment" locked="false">true</parameter>
+    <parameter name="hotupdate" locked="false">false</parameter>
+    <parameter name="enableMTOM" locked="false">true</parameter>
+    <!-- Uncomment this to enable REST support -->
+    <!--    <parameter name="enableREST" locked="false">true</parameter>-->
+
+    <parameter name="SynapseConfiguration" locked="false">synapse.xml</parameter>
+
+    <parameter name="userName" locked="false">admin</parameter>
+    <parameter name="password" locked="false">axis2</parameter>
+
+    <parameter name="seralizeLocation" locked="false">.</parameter>
+    <hostConfiguration>
+        <ip>127.0.0.1</ip>
+        <port>5555</port>
+    </hostConfiguration>
+
+
+    <!--if you want to extract the service archive file and work with that please uncomment
this-->
+    <!--else , it wont extract archive file or does not take into consideration if someone
drop-->
+    <!--exploded directory into /service directory-->
+    <!--<parameter name="extractServiceArchive" locked="false">true</parameter>-->
+
+
+    <!--    The way of adding listener to the system-->
+    <!--    <listener class="org.apache.axis2.ObserverIMPL">-->
+    <!--        <parameter name="RSS_URL" locked="false">http://127.0.0.1/rss</parameter>-->
+    <!--    </listener>-->
+
+    <!-- ================================================= -->
+    <!-- Message Receivers -->
+    <!-- ================================================= -->
+    <!-- This is the Deafult Message Receiver for the Request Response style Operations
-->
+    <messageReceiver mep="INOUT" class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
+
+    <!-- ================================================= -->
+    <!-- Transport Ins -->
+    <!-- ================================================= -->
+    <transportReceiver name="http" class="org.apache.axis2.transport.http.SimpleHTTPServer">
+        <parameter name="port" locked="false">6060</parameter>
+    </transportReceiver>
+
+    <!-- Uncomment this one with the appropriate papameters to enable the SMTP transport
Receiver
+    <transportReceiver name="mail" class="org.apache.axis2.transport.mail.SimpleMailListener">
+          <parameter name="transport.mail.pop3.host" locked="false">127.0.0.1</parameter>
+          <parameter name="transport.mail.pop3.user" locked="false">axis2</parameter>
+          <parameter name="transport.mail.pop3.password" locked="false">axis2</parameter>
+          <parameter name="transport.mail.pop3.port" locked="false">110</parameter>
+          <parameter name="transport.mail.replyToAddress" locked="false">axis2@127.0.0.1</parameter>
+      </transportReceiver> -->
+
+    <transportReceiver name="tcp" class="org.apache.axis2.transport.tcp.TCPServer">
+        <parameter name="port" locked="false">6060</parameter>
+    </transportReceiver>
+
+    <!--<transportReceiver name="jms" class="org.apache.axis2.transport.jms.SimpleJMSListener">-->
+        <!--<parameter name="transport.jms.Destination" locked="false">dynamicQueues/FOO</parameter>-->
+        <!--<parameter name="java.naming.factory.initial" locked="false">org.activemq.jndi.ActiveMQInitialContextFactory</parameter>-->
+        <!--<parameter name="java.naming.provider.url" locked="false">tcp://localhost:61616</parameter>-->
+    <!--</transportReceiver>-->
+
+    <!-- ================================================= -->
+    <!-- Transport Outs -->
+    <!-- ================================================= -->
+
+    <transportSender name="tcp" class="org.apache.axis2.transport.tcp.TCPTransportSender"/>
+    <transportSender name="local" class="org.apache.axis2.transport.local.LocalTransportSender"/>
+    <!--<transportSender name="jms" class="org.apache.axis2.transport.jms.JMSSender"/>-->
+    <transportSender name="http" class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
+        <parameter name="PROTOCOL" locked="false">HTTP/1.1</parameter>
+        <!--<parameter name="PROXY" proxy_host="smecube" proxy_port="3128" locked="true">anonymous:anonymous:anonymous</parameter>-->
+    </transportSender>
+    <transportSender name="https"
+                     class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
+        <parameter name="PROTOCOL" locked="false">HTTP/1.1</parameter>
+    </transportSender>
+
+    <!-- Uncomment this one with the appropriate papameters to enable the SMTP transport
Receiver
+   <transportSender name="mailto" class="org.apache.axis2.transport.mail.MailTransportSender">
+       <parameter name="transport.mail.smtp.host" locked="false">127.0.0.1</parameter>
+       <parameter name="transport.mail.smtp.user" locked="false">axis2</parameter>
+       <parameter name="transport.mail.smtp.password" locked="false">axis2</parameter>
+       <parameter name="transport.mail.smtp.port" locked="false">25</parameter>
+   </transportSender>
+   -->
+
+    <!-- ================================================= -->
+    <!-- Global Modules  -->
+    <!-- ================================================= -->
+    <!-- Comment this to disable Addressing -->
+    <!--<module ref="addressing"/>-->
+
+
+    <!--Configuring module , providing parameters for modules whether they refer or not-->
+    <!--<moduleConfig name="addressing">-->
+    <!--<parameter name="addressingPara" locked="false">N/A</parameter>-->
+    <!--</moduleConfig>-->
+
+    <!-- ================================================= -->
+    <!-- Phases  -->
+    <!-- ================================================= -->
+    <phaseOrder type="inflow">
+        <!--  System pre defined phases       -->
+        <phase name="TransportIn"/>
+        <phase name="PreDispatch"/>
+        <phase name="Dispatch">
+            <handler name="SynapseDispatcher"
+                     class="org.apache.synapse.axis2.SynapseDispatcher">
+                <order phase="Dispatch"/>
+            </handler>
+
+            <!--<handler name="AddressingBasedDispatcher"-->
+                     <!--class="org.apache.axis2.engine.AddressingBasedDispatcher">-->
+                <!--<order phase="Dispatch"/>-->
+            <!--</handler>-->
+
+             <!--<handler name="RequestURIBasedDispatcher"-->
+                     <!--class="org.apache.axis2.engine.RequestURIBasedDispatcher">-->
+                <!--<order phase="Dispatch"/>-->
+            <!--</handler>-->
+
+            <!--<handler name="SOAPActionBasedDispatcher"-->
+                     <!--class="org.apache.axis2.engine.SOAPActionBasedDispatcher">-->
+                <!--<order phase="Dispatch"/>-->
+            <!--</handler>-->
+
+             <!--<handler name="SOAPMessageBodyBasedDispatcher"-->
+                     <!--class="org.apache.axis2.engine.SOAPMessageBodyBasedDispatcher">-->
+                <!--<order phase="Dispatch"/>-->
+            <!--</handler>-->
+        </phase>
+        <phase name="PostDispatch">
+             <handler name="DispatchPostConditionsEvaluator"
+                     class="org.apache.axis2.engine.DispatchingChecker">
+                <order phase="PostDispatch"/>
+            </handler>
+            <handler name="InstanceDispatcher"
+                     class="org.apache.axis2.engine.InstanceDispatcher">
+                <order phase="PostDispatch"/>
+            </handler>
+            <handler name="SOAPProcessingModelChecker"
+                     class="org.apache.axis2.engine.SOAPProcessingModelChecker">
+                <order phase="PostDispatch"/>
+            </handler>
+        </phase>
+        <!--  System pre defined phases       -->
+        <!--   After Postdispatch phase module author or or service author can add any
phase he want      -->
+        <phase name="userphase1"/>
+    </phaseOrder>
+    <phaseOrder type="outflow">
+        <!--      user can add his own phases to this area  -->
+        <phase name="userphase1"/>
+        <!--system predefined phase-->
+        <!--these phase will run irrespective of the service-->
+        <phase name="PolicyDetermination"/>
+        <phase name="MessageOut"/>
+    </phaseOrder>
+    <phaseOrder type="INfaultflow">
+        <!--      user can add his own phases to this area  -->
+        <phase name="userphase1"/>
+    </phaseOrder>
+    <phaseOrder type="Outfaultflow">
+        <!--      user can add his own phases to this area  -->
+        <phase name="userphase1"/>
+        <phase name="PolicyDetermination"/>
+        <phase name="MessageOut"/>
+    </phaseOrder>
 </axisconfig>
 

Modified: incubator/synapse/trunk/java/test/org/apache/synapse/spi/injection/SendOnProcessorWithRuleTest.java
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/java/test/org/apache/synapse/spi/injection/SendOnProcessorWithRuleTest.java?rev=355858&r1=355857&r2=355858&view=diff
==============================================================================
--- incubator/synapse/trunk/java/test/org/apache/synapse/spi/injection/SendOnProcessorWithRuleTest.java
(original)
+++ incubator/synapse/trunk/java/test/org/apache/synapse/spi/injection/SendOnProcessorWithRuleTest.java
Sat Dec 10 17:48:50 2005
@@ -27,7 +27,7 @@
 */
 
 public class SendOnProcessorWithRuleTest extends TestCase {
-    
+
     private SimpleHTTPServer synapseServer;
     private SimpleHTTPServer axis2Server;
     private EndpointReference targetEpr = new EndpointReference(
@@ -40,7 +40,7 @@
         /**
          * axis2Server is the one who holds the actual service
          */
-        axis2Server = new SimpleHTTPServer("synapse-repository-sendonAxis2",
+        axis2Server = new SimpleHTTPServer("target/synapse-repository-sendonAxis2",
                 8090);
         synapseServer.start();
         axis2Server.start();
@@ -51,7 +51,7 @@
         axis2Server.stop();
     }
 
-    public void testSendPrcessor() throws Exception {
+    public void testSendProcessor() throws Exception {
         MessageSender msgSender = new MessageSender();
         Options options = new Options();
         options.setTo(targetEpr);

Modified: incubator/synapse/trunk/java/test/org/apache/synapse/spi/processors/AddressingProcessorTest.java
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/java/test/org/apache/synapse/spi/processors/AddressingProcessorTest.java?rev=355858&r1=355857&r2=355858&view=diff
==============================================================================
--- incubator/synapse/trunk/java/test/org/apache/synapse/spi/processors/AddressingProcessorTest.java
(original)
+++ incubator/synapse/trunk/java/test/org/apache/synapse/spi/processors/AddressingProcessorTest.java
Sat Dec 10 17:48:50 2005
@@ -38,6 +38,5 @@
         assertTrue(((Boolean) sm.getProperty(
                 Constants.MEDIATOR_RESPONSE_PROPERTY)).booleanValue());
         assertTrue(result);
-        //todo: sm stuff
     }
 }

Modified: incubator/synapse/trunk/java/test/org/apache/synapse/spi/processors/Axis2MediatorProcessorTest.java
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/java/test/org/apache/synapse/spi/processors/Axis2MediatorProcessorTest.java?rev=355858&r1=355857&r2=355858&view=diff
==============================================================================
--- incubator/synapse/trunk/java/test/org/apache/synapse/spi/processors/Axis2MediatorProcessorTest.java
(original)
+++ incubator/synapse/trunk/java/test/org/apache/synapse/spi/processors/Axis2MediatorProcessorTest.java
Sat Dec 10 17:48:50 2005
@@ -30,6 +30,5 @@
         pro.setServiceMediatorName("test-mediator");
         boolean result = pro.process(null,sm);
         assertTrue(result);
-        //todo
     }
 }

Modified: incubator/synapse/trunk/java/test/org/apache/synapse/spi/processors/BulitinProcessorTest.java
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/java/test/org/apache/synapse/spi/processors/BulitinProcessorTest.java?rev=355858&r1=355857&r2=355858&view=diff
==============================================================================
--- incubator/synapse/trunk/java/test/org/apache/synapse/spi/processors/BulitinProcessorTest.java
(original)
+++ incubator/synapse/trunk/java/test/org/apache/synapse/spi/processors/BulitinProcessorTest.java
Sat Dec 10 17:48:50 2005
@@ -30,7 +30,6 @@
         Processor log = new LogProcessor();
         boolean result = log.process(null,sm);
         assertTrue(result);
-        //todo
     }
     public void testSendProcessorTest() throws Exception {
 

Modified: incubator/synapse/trunk/java/test/org/apache/synapse/spi/processors/ClassMediatorProcessorTest.java
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/java/test/org/apache/synapse/spi/processors/ClassMediatorProcessorTest.java?rev=355858&r1=355857&r2=355858&view=diff
==============================================================================
--- incubator/synapse/trunk/java/test/org/apache/synapse/spi/processors/ClassMediatorProcessorTest.java
(original)
+++ incubator/synapse/trunk/java/test/org/apache/synapse/spi/processors/ClassMediatorProcessorTest.java
Sat Dec 10 17:48:50 2005
@@ -31,6 +31,5 @@
         pro.setClazz(Class.forName("sampleMediators.Logger"));
         boolean result = pro.process(null,sm);
         assertTrue(result);
-        //todo:
     }
 }

Modified: incubator/synapse/trunk/java/test/org/apache/synapse/spi/processors/RegexProcessorTest.java
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/java/test/org/apache/synapse/spi/processors/RegexProcessorTest.java?rev=355858&r1=355857&r2=355858&view=diff
==============================================================================
--- incubator/synapse/trunk/java/test/org/apache/synapse/spi/processors/RegexProcessorTest.java
(original)
+++ incubator/synapse/trunk/java/test/org/apache/synapse/spi/processors/RegexProcessorTest.java
Sat Dec 10 17:48:50 2005
@@ -31,7 +31,6 @@
         pro.setPattern("http://xmethods..\\*");
         boolean result = pro.process(null,sm);
         assertTrue(result);
-        //todo: smc stuff
 
     }
 }

Modified: incubator/synapse/trunk/java/test/org/apache/synapse/util/Axis2EvnSetup.java
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/java/test/org/apache/synapse/util/Axis2EvnSetup.java?rev=355858&r1=355857&r2=355858&view=diff
==============================================================================
--- incubator/synapse/trunk/java/test/org/apache/synapse/util/Axis2EvnSetup.java (original)
+++ incubator/synapse/trunk/java/test/org/apache/synapse/util/Axis2EvnSetup.java Sat Dec 10
17:48:50 2005
@@ -94,7 +94,7 @@
         OMElement method = fac.createOMElement("service", omNs);
         OMElement value = fac.createOMElement("text", omNs);
         value.addChild(
-                fac.createText(value, "Synapse Testing String by Saminda "));
+                fac.createText(value, "Synapse Testing String"));
         method.addChild(value);
         return method;
     }

Modified: incubator/synapse/trunk/java/test/rules/synapse-sendon.xml
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/java/test/rules/synapse-sendon.xml?rev=355858&r1=355857&r2=355858&view=diff
==============================================================================
--- incubator/synapse/trunk/java/test/rules/synapse-sendon.xml (original)
+++ incubator/synapse/trunk/java/test/rules/synapse-sendon.xml Sat Dec 10 17:48:50 2005
@@ -1,7 +1,7 @@
 <synapse xmlns="http://ws.apache.org/ns/synapse">
     <stage name="xpath">
         <xpath expr="//ns:text" xmlns:ns="urn:text-body">
-            <classmediator name="sendOnHelper" class="sampleMediators.SendOn"/>
+            <classmediator name="simpleRouting" class="sampleMediators.SampleRouter"/>
             <send/>
         </xpath>
     </stage>



---------------------------------------------------------------------
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