You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ni...@apache.org on 2008/12/11 05:36:13 UTC
svn commit: r725572 - in /activemq/camel/trunk:
camel-core/src/test/java/org/apache/camel/processor/SetExchangePatternTest.java
components/camel-spring/src/test/resources/org/apache/camel/spring/processor/setExchangePattern.xml
Author: ningjiang
Date: Wed Dec 10 20:36:13 2008
New Revision: 725572
URL: http://svn.apache.org/viewvc?rev=725572&view=rev
Log:
CAMEL-1181 added the snippet tags for wiki page
Modified:
activemq/camel/trunk/camel-core/src/test/java/org/apache/camel/processor/SetExchangePatternTest.java
activemq/camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/spring/processor/setExchangePattern.xml
Modified: activemq/camel/trunk/camel-core/src/test/java/org/apache/camel/processor/SetExchangePatternTest.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/test/java/org/apache/camel/processor/SetExchangePatternTest.java?rev=725572&r1=725571&r2=725572&view=diff
==============================================================================
--- activemq/camel/trunk/camel-core/src/test/java/org/apache/camel/processor/SetExchangePatternTest.java (original)
+++ activemq/camel/trunk/camel-core/src/test/java/org/apache/camel/processor/SetExchangePatternTest.java Wed Dec 10 20:36:13 2008
@@ -70,15 +70,16 @@
protected RouteBuilder createRouteBuilder() {
return new RouteBuilder() {
public void configure() {
-
+ // START SNIPPET: example
+ //Set the exchange pattern to InOut, then send it from direct:inOnly to mock:result endpoint
from("direct:inOnly").inOut().to("mock:result");
-
+ //Set the exchange pattern to InOut, then send it from direct:inOut to mock:result endpoint
from("direct:inOut").setExchangePattern(ExchangePattern.InOnly).to("mock:result");
-
+ //Send the exchange from direct:inOut1 to mock:result with setting the exchange pattern to be RobustInOnly
from("direct:inOut1").to("mock:result", ExchangePattern.RobustInOnly);
-
+ //Send the exchange from direct:inOut2 to mock:result with setting the exchange pattern to be InOnly
from("direct:inOut2").inOnly("mock:result");
-
+ // END SNIPPET: example
}
};
}
Modified: activemq/camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/spring/processor/setExchangePattern.xml
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/spring/processor/setExchangePattern.xml?rev=725572&r1=725571&r2=725572&view=diff
==============================================================================
--- activemq/camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/spring/processor/setExchangePattern.xml (original)
+++ activemq/camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/spring/processor/setExchangePattern.xml Wed Dec 10 20:36:13 2008
@@ -22,30 +22,34 @@
http://activemq.apache.org/camel/schema/spring http://activemq.apache.org/camel/schema/spring/camel-spring.xsd
">
-
+ <!-- START SNIPPET: example -->
<camelContext id="camel" xmlns="http://activemq.apache.org/camel/schema/spring">
+ <!-- Set the exchange pattern to InOut, then send it from direct:inOnly to mock:result endpoint -->
<route>
<from uri="direct:inOnly"/>
<setExchangePattern pattern="InOut"/>
<to uri="mock:result"/>
</route>
+ <!-- Set the exchange pattern to InOnly, then send it from direct:inOut to mock:result endpoint -->
<route>
<from uri="direct:inOut"/>
<setExchangePattern pattern="InOnly"/>
<to uri="mock:result"/>
</route>
+ <!-- Send the exchange from direct:inOut1 to mock:result with setting the exchange pattern to be RobustInOnly-->
<route>
<from uri="direct:inOut1"/>
<to uri="mock:result" pattern="RobustInOnly"/>
</route>
+ <!-- Send the exchange from direct:inOut2 to mock:result with setting the exchange pattern to be InOnly -->
<route>
<from uri="direct:inOut2"/>
<inOnly uri="mock:result"/>
</route>
</camelContext>
-
+ <!-- END SNIPPET: example -->
</beans>