You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rave.apache.org by ma...@apache.org on 2012/08/23 17:23:24 UTC
svn commit: r1376541 -
/rave/sandbox/content-services/demo-portal/src/main/webapp/WEB-INF/dispatcher-servlet.xml
Author: marijan
Date: Thu Aug 23 15:23:24 2012
New Revision: 1376541
URL: http://svn.apache.org/viewvc?rev=1376541&view=rev
Log:
RAVE-695 Create new rave-jcr-ocm module providing JCR based Object Content Mapping (OCM) support
-add jcr config manager
Modified:
rave/sandbox/content-services/demo-portal/src/main/webapp/WEB-INF/dispatcher-servlet.xml
Modified: rave/sandbox/content-services/demo-portal/src/main/webapp/WEB-INF/dispatcher-servlet.xml
URL: http://svn.apache.org/viewvc/rave/sandbox/content-services/demo-portal/src/main/webapp/WEB-INF/dispatcher-servlet.xml?rev=1376541&r1=1376540&r2=1376541&view=diff
==============================================================================
--- rave/sandbox/content-services/demo-portal/src/main/webapp/WEB-INF/dispatcher-servlet.xml (original)
+++ rave/sandbox/content-services/demo-portal/src/main/webapp/WEB-INF/dispatcher-servlet.xml Thu Aug 23 15:23:24 2012
@@ -124,13 +124,31 @@
</bean>
</util:list>
+ <!-- FILE BASED LOADING-->
+ <!--
+ <bean name="hmvcHandlerMappingByConfig" class="org.apache.rave.portal.web.hmvc.HmvcHandlerMethodMappingByConfig">
+ <property name="order" value="-1"/>
+ <property name="interceptors" ref="interceptors"/>
+ <property name="configurationName" value="myConfiguration"/>
+ <property name="configurationPath" value="classpath:page-configuration.xml"/>
+ <property name="urlMappingsPath" value="classpath:url-configuration.xml"/>
+ <property name="configManager" ref="fileConfigurationManager"/>
+ </bean>
+ -->
+
+ <!-- JCR LOADING -->
<bean name="hmvcHandlerMappingByConfig" class="org.apache.rave.portal.web.hmvc.HmvcHandlerMethodMappingByConfig">
<property name="order" value="-1"/>
- <property name="interceptors" ref="interceptors"/>
<property name="configurationName" value="myConfiguration"/>
- <property name="configurationPath" value="classpath:page-configuration.xml"/>
- <property name="urlMappingsPath" value="classpath:url-configuration.xml"/>
+ <property name="configurationPath" value="/raveconfig"/>
<property name="configManager" ref="fileConfigurationManager"/>
+ <property name="credentials" ref="jcrCredentials"/>
+ </bean>
+
+ <!-- JCR LOGIN -->
+ <bean id="jcrCredentials" class="javax.jcr.SimpleCredentials">
+ <constructor-arg index="0" value="admin"/>
+ <constructor-arg index="1" value="admin"/>
</bean>
<bean id="fileConfigurationManager" class="org.apache.rave.jcr.config.FileConfigManager"/>