Author: ningjiang
Date: Thu Apr 15 07:07:57 2010
New Revision: 934302

URL: http://svn.apache.org/viewvc?rev=934302&view=rev
Log:
CAMEL-2582 added wiki tag for camel-spring-security example

Modified:
    
camel/trunk/components/camel-spring-security/src/test/resources/org/apache/camel/component/spring/security/SpringSecurityCamelContext.xml
    
camel/trunk/components/camel-spring-security/src/test/resources/org/apache/camel/component/spring/security/commonSecurity.xml

Modified: 
camel/trunk/components/camel-spring-security/src/test/resources/org/apache/camel/component/spring/security/SpringSecurityCamelContext.xml
URL: 
http://svn.apache.org/viewvc/camel/trunk/components/camel-spring-security/src/test/resources/org/apache/camel/component/spring/security/SpringSecurityCamelContext.xml?rev=934302&r1=934301&r2=934302&view=diff
==============================================================================
--- 
camel/trunk/components/camel-spring-security/src/test/resources/org/apache/camel/component/spring/security/SpringSecurityCamelContext.xml
 (original)
+++ 
camel/trunk/components/camel-spring-security/src/test/resources/org/apache/camel/component/spring/security/SpringSecurityCamelContext.xml
 Thu Apr 15 07:07:57 2010
@@ -15,6 +15,7 @@
     See the License for the specific language governing permissions and
     limitations under the License.
 -->
+<!-- START SNIPPET: example -->
 <beans xmlns="http://www.springframework.org/schema/beans";
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
         xmlns:spring-security="http://www.springframework.org/schema/security";
@@ -26,9 +27,9 @@
           
http://camel.apache.org/schema/spring-security/camel-spring-security.xsd
           http://www.springframework.org/schema/security
                  
http://www.springframework.org/schema/security/spring-security.xsd";>
-                 
+                 <!-- import the spring security configuration  -->
                  <import 
resource="classpath:org/apache/camel/component/spring/security/commonSecurity.xml"/>
-          
+           
           <authorizationPolicy id="admin" access="ROLE_ADMIN" 
                authenticationManager="authenticationManager"
                accessDecisionManager="accessDecisionManager"
@@ -37,11 +38,12 @@
           <camelContext id="myCamelContext" 
xmlns="http://camel.apache.org/schema/spring";>
              <route>
                <from uri="direct:start"/>
+               <!-- The exchange should be authenticated with the role of 
ADMIN before it is send to mock:endpoint -->
                <policy ref="admin" />
                <to uri="mock:end"/>
              </route>
           </camelContext>
-          
+         
 </beans>
-                        
+ <!-- END SNIPPET: example -->                        
                     

Modified: 
camel/trunk/components/camel-spring-security/src/test/resources/org/apache/camel/component/spring/security/commonSecurity.xml
URL: 
http://svn.apache.org/viewvc/camel/trunk/components/camel-spring-security/src/test/resources/org/apache/camel/component/spring/security/commonSecurity.xml?rev=934302&r1=934301&r2=934302&view=diff
==============================================================================
--- 
camel/trunk/components/camel-spring-security/src/test/resources/org/apache/camel/component/spring/security/commonSecurity.xml
 (original)
+++ 
camel/trunk/components/camel-spring-security/src/test/resources/org/apache/camel/component/spring/security/commonSecurity.xml
 Thu Apr 15 07:07:57 2010
@@ -15,6 +15,7 @@
     See the License for the specific language governing permissions and
     limitations under the License.
 -->
+<!-- START SNIPPET: example -->
 <beans xmlns="http://www.springframework.org/schema/beans";
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
        xmlns:spring-security="http://www.springframework.org/schema/security";
@@ -41,4 +42,5 @@
                <spring-security:user name="bob" password="bobspassword" 
authorities="ROLE_USER"/>
        </spring-security:user-service>
 
-</beans>
\ No newline at end of file
+</beans>
+<!-- END SNIPPET: example -->   
\ No newline at end of file


Reply via email to