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 2009/11/24 13:12:45 UTC

svn commit: r883667 - /camel/trunk/components/camel-cxf/src/test/resources/org/apache/camel/component/cxf/jaxrs/CxfRsSpringRouter.xml

Author: ningjiang
Date: Tue Nov 24 12:12:43 2009
New Revision: 883667

URL: http://svn.apache.org/viewvc?rev=883667&view=rev
Log:
CAMEL-2219 added snippet tag for wiki document

Modified:
    camel/trunk/components/camel-cxf/src/test/resources/org/apache/camel/component/cxf/jaxrs/CxfRsSpringRouter.xml

Modified: camel/trunk/components/camel-cxf/src/test/resources/org/apache/camel/component/cxf/jaxrs/CxfRsSpringRouter.xml
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-cxf/src/test/resources/org/apache/camel/component/cxf/jaxrs/CxfRsSpringRouter.xml?rev=883667&r1=883666&r2=883667&view=diff
==============================================================================
--- camel/trunk/components/camel-cxf/src/test/resources/org/apache/camel/component/cxf/jaxrs/CxfRsSpringRouter.xml (original)
+++ camel/trunk/components/camel-cxf/src/test/resources/org/apache/camel/component/cxf/jaxrs/CxfRsSpringRouter.xml Tue Nov 24 12:12:43 2009
@@ -15,6 +15,7 @@
     See the License for the specific language governing permissions and
     limitations under the License.
 -->
+<!-- START SNIPPET: cxfRsExample -->
 <beans xmlns="http://www.springframework.org/schema/beans"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xmlns:cxf="http://camel.apache.org/schema/cxf"
@@ -25,7 +26,7 @@
        http://cxf.apache.org/jaxrs http://cxf.apache.org/schemas/jaxrs.xsd
        http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd
     ">
-
+  <!-- Defined the real JAXRS back end service  -->
   <jaxrs:server id="restService"
 		        address="http://localhost:9002" 
 		        staticSubresourceResolution="true">
@@ -38,23 +39,25 @@
 
   <bean id="customerService" class="org.apache.camel.component.cxf.jaxrs.testbean.CustomerService" />
    
+  <!-- Defined the server endpoint to create the cxf-rs consumer --> 
   <cxf:rsServer id="rsServer" address="http://localhost:9000"
     serviceClass="org.apache.camel.component.cxf.jaxrs.testbean.CustomerService" />
 
-
+  <!-- Defined the client endpoint to create the cxf-rs consumer -->
   <cxf:rsClient id="rsClient" address="http://localhost:9002"
     serviceClass="org.apache.camel.component.cxf.jaxrs.testbean.CustomerService"/>
   
-
+  <!-- The camel route context -->
   <camelContext id="camel" xmlns="http://camel.apache.org/schema/spring">
     <route>
        <from uri="cxfrs://bean://rsServer"/>
+       <!-- We can remove this configure as the CXFRS producer is using the HttpAPI by default -->
        <setHeader headerName="CamelCxfRsUsingHttpAPI">
          <constant>True</constant>        
        </setHeader>
        <to uri="cxfrs://bean://rsClient"/>
     </route>
   </camelContext>
-
+  
 </beans>
-
+<!-- START SNIPPET: cxfRsExample -->