Author: ningjiang
Date: Thu Apr 15 08:13:37 2010
New Revision: 934325

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

Modified:
    
camel/trunk/examples/camel-example-spring-security/src/main/resources/org/apache/camel/example/spring/security/camel-context.xml

Modified: 
camel/trunk/examples/camel-example-spring-security/src/main/resources/org/apache/camel/example/spring/security/camel-context.xml
URL: 
http://svn.apache.org/viewvc/camel/trunk/examples/camel-example-spring-security/src/main/resources/org/apache/camel/example/spring/security/camel-context.xml?rev=934325&r1=934324&r2=934325&view=diff
==============================================================================
--- 
camel/trunk/examples/camel-example-spring-security/src/main/resources/org/apache/camel/example/spring/security/camel-context.xml
 (original)
+++ 
camel/trunk/examples/camel-example-spring-security/src/main/resources/org/apache/camel/example/spring/security/camel-context.xml
 Thu Apr 15 08:13:37 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";
@@ -39,16 +40,18 @@
                        </property>
                </bean>
                  
+               <!-- The Policy for checking the authentication role of ADMIN 
-->
         <authorizationPolicy id="admin" access="ROLE_ADMIN" 
                authenticationManager="authenticationManager"
                accessDecisionManager="accessDecisionManager"
                 xmlns="http://camel.apache.org/schema/spring-security"/>
                 
+        <!-- The Policy for checking the authentication role of USER -->
         <authorizationPolicy id="user" access="ROLE_USER"
                 xmlns="http://camel.apache.org/schema/spring-security"/>
                 
           <camelContext id="myCamelContext" 
xmlns="http://camel.apache.org/schema/spring";>
-          
+              <!-- Catch the authorization exception and set the Access Denied 
message back -->
               <onException>
                  
<exception>org.apache.camel.CamelAuthorizationException</exception>
                  <handled><constant>true</constant></handled>
@@ -72,5 +75,5 @@
           </camelContext>
           
 </beans>
-                        
+<!-- END SNIPPET: example -->                               
                     


Reply via email to