servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r394358 - in /incubator/servicemix/trunk/servicemix-eip/src/test: java/org/apache/servicemix/eip/SpringConfigurationTest.java resources/org/apache/servicemix/eip/spring.xml
Date Sat, 15 Apr 2006 19:02:40 GMT
Author: gnodet
Date: Sat Apr 15 12:02:40 2006
New Revision: 394358

URL: http://svn.apache.org/viewcvs?rev=394358&view=rev
Log:
Add missing patterns to the spring config

Modified:
    incubator/servicemix/trunk/servicemix-eip/src/test/java/org/apache/servicemix/eip/SpringConfigurationTest.java
    incubator/servicemix/trunk/servicemix-eip/src/test/resources/org/apache/servicemix/eip/spring.xml

Modified: incubator/servicemix/trunk/servicemix-eip/src/test/java/org/apache/servicemix/eip/SpringConfigurationTest.java
URL: http://svn.apache.org/viewcvs/incubator/servicemix/trunk/servicemix-eip/src/test/java/org/apache/servicemix/eip/SpringConfigurationTest.java?rev=394358&r1=394357&r2=394358&view=diff
==============================================================================
--- incubator/servicemix/trunk/servicemix-eip/src/test/java/org/apache/servicemix/eip/SpringConfigurationTest.java
(original)
+++ incubator/servicemix/trunk/servicemix-eip/src/test/java/org/apache/servicemix/eip/SpringConfigurationTest.java
Sat Apr 15 12:02:40 2006
@@ -38,6 +38,7 @@
         ((Receiver) getBean("trace1")).getMessageList().assertMessagesReceived(1);
         ((Receiver) getBean("trace2")).getMessageList().assertMessagesReceived(1);
         ((Receiver) getBean("trace3")).getMessageList().assertMessagesReceived(1);
+        ((Receiver) getBean("trace4")).getMessageList().assertMessagesReceived(1);
         
         // Wait for all messages to be processed
         Thread.sleep(50);

Modified: incubator/servicemix/trunk/servicemix-eip/src/test/resources/org/apache/servicemix/eip/spring.xml
URL: http://svn.apache.org/viewcvs/incubator/servicemix/trunk/servicemix-eip/src/test/resources/org/apache/servicemix/eip/spring.xml?rev=394358&r1=394357&r2=394358&view=diff
==============================================================================
--- incubator/servicemix/trunk/servicemix-eip/src/test/resources/org/apache/servicemix/eip/spring.xml
(original)
+++ incubator/servicemix/trunk/servicemix-eip/src/test/resources/org/apache/servicemix/eip/spring.xml
Sat Apr 15 12:02:40 2006
@@ -11,8 +11,9 @@
         <sm:component>
           <eip:component>
             <eip:endpoints>
-
-              <eip:wire-tap service="test:wireTap" endpoint="myConsumer">
+
+              <!-- START SNIPPET: wire-tap -->
+              <eip:wire-tap service="test:wireTap" endpoint="endpoint">
                 <eip:target>
                   <eip:exchange-target service="test:xpathSplitter" />
                 </eip:target>
@@ -20,34 +21,75 @@
                   <eip:exchange-target service="test:trace1" />
                 </eip:inListener>
               </eip:wire-tap>
-
-              <eip:xpath-splitter service="test:xpathSplitter" endpoint="myConsumer" xpath="/*/*">
+              <!-- END SNIPPET: wire-tap -->
+              
+              <!-- START SNIPPET: xpath-splitter -->
+              <eip:xpath-splitter service="test:xpathSplitter" endpoint="endpoint" xpath="/*/*">
                 <eip:target>
                   <eip:exchange-target service="test:router" />
                 </eip:target>
               </eip:xpath-splitter>
-
-              <eip:content-based-router service="test:router" endpoint="myConsumer">
+              <!-- END SNIPPET: xpath-splitter -->
+              
+              <!-- START SNIPPET: content-based-router -->
+              <eip:content-based-router service="test:router" endpoint="endpoint">
                 <eip:rules>
                   <eip:routing-rule>
                     <eip:predicate>
                       <eip:xpath-predicate xpath="count(/echo) = 1" />
                     </eip:predicate>
                     <eip:target>
-                      <eip:exchange-target service="test:trace2" />
+                      <eip:exchange-target service="test:pipeline" />
                     </eip:target>
                   </eip:routing-rule>
-                  <eip:routing-rule>
+                  <eip:routing-rule>
+                    <!-- there is no predicate, so this is the default destination -->
                     <eip:target>
-                      <eip:exchange-target service="test:trace3" />
+                      <eip:exchange-target service="test:recipients" />
                     </eip:target>
                   </eip:routing-rule>
                 </eip:rules>
-              </eip:content-based-router>
-
+              </eip:content-based-router>
+              <!-- END SNIPPET: content-based-router -->
+              
+              <!-- START SNIPPET: pipeline -->
+              <eip:pipeline service="test:pipeline" endpoint="endpoint">
+                <eip:transformer>
+                  <eip:exchange-target service="test:routingSlip" />
+                </eip:transformer>
+                <eip:target>
+                  <eip:exchange-target service="test:trace2" />
+                </eip:target>
+              </eip:pipeline>
+              <!-- END SNIPPET: pipeline -->
+              
+              <!-- START SNIPPET: static-recipient-list -->
+              <eip:static-recipient-list service="test:recipients" endpoint="endpoint">
+                <eip:recipients>
+                  <eip:exchange-target service="test:trace3" />
+                  <eip:exchange-target service="test:trace4" />
+                </eip:recipients>
+              </eip:static-recipient-list>
+              <!-- END SNIPPET: static-recipient-list -->
+              
+              <!-- START SNIPPET: static-routing-slip -->
+              <eip:static-routing-slip service="test:routingSlip" endpoint="endpoint">
+                <eip:targets>
+                  <eip:exchange-target service="test:echo" />
+                  <eip:exchange-target service="test:echo" />
+                </eip:targets>
+              </eip:static-routing-slip>
+              <!-- END SNIPPET: static-routing-slip -->
+              
             </eip:endpoints>
           </eip:component>
         </sm:component>
+      </sm:activationSpec>
+      
+      <sm:activationSpec id="echo" service="test:echo">
+        <sm:component>
+          <bean class="org.apache.servicemix.components.util.EchoComponent"/>
+        </sm:component>
       </sm:activationSpec>
 
       <sm:activationSpec id="trace1" service="test:trace1">
@@ -60,12 +102,17 @@
           <bean class="org.apache.servicemix.tck.ReceiverComponent" />
         </sm:component>
       </sm:activationSpec>
-      <sm:activationSpec id="trace3" service="test:trace3">
-        <sm:component>
-          <bean class="org.apache.servicemix.tck.ReceiverComponent" />
-        </sm:component>
-      </sm:activationSpec>
-
+      <sm:activationSpec id="trace3" service="test:trace3">
+        <sm:component>
+          <bean class="org.apache.servicemix.tck.ReceiverComponent" />
+        </sm:component>
+      </sm:activationSpec>
+      <sm:activationSpec id="trace4" service="test:trace4">
+        <sm:component>
+          <bean class="org.apache.servicemix.tck.ReceiverComponent" />
+        </sm:component>
+      </sm:activationSpec>
+      
     </sm:activationSpecs>
   </sm:container>
 



Mime
View raw message