You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rave.apache.org by ra...@apache.org on 2011/04/26 23:45:24 UTC
svn commit: r1096924 -
/incubator/rave/trunk/rave-portal/src/main/webapp/WEB-INF/dataContext.xml
Author: raminder
Date: Tue Apr 26 21:45:24 2011
New Revision: 1096924
URL: http://svn.apache.org/viewvc?rev=1096924&view=rev
Log:
Changed H2 database from memory mode to file mode and added a web lister to look at the h2 data on port 11111
Modified:
incubator/rave/trunk/rave-portal/src/main/webapp/WEB-INF/dataContext.xml
Modified: incubator/rave/trunk/rave-portal/src/main/webapp/WEB-INF/dataContext.xml
URL: http://svn.apache.org/viewvc/incubator/rave/trunk/rave-portal/src/main/webapp/WEB-INF/dataContext.xml?rev=1096924&r1=1096923&r2=1096924&view=diff
==============================================================================
--- incubator/rave/trunk/rave-portal/src/main/webapp/WEB-INF/dataContext.xml (original)
+++ incubator/rave/trunk/rave-portal/src/main/webapp/WEB-INF/dataContext.xml Tue Apr 26 21:45:24 2011
@@ -22,9 +22,16 @@
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.0.xsd">
<bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
- <property name="url" value="jdbc:h2:mem:portal;DB_CLOSE_DELAY=-1"/>
+ <!-- property name="url" value="jdbc:h2:mem:portal;DB_CLOSE_DELAY=-1"/> -->
+ <property name="url" value="jdbc:h2:file:./portal;FILE_LOCK=NO" />
<property name="driverClassName" value="org.h2.Driver"/>
<property name="username" value="sa"/>
<property name="password" value="local"/>
</bean>
+ <!-- provides a H2 console to look into the db if necessary -->
+ <bean id="org.h2.tools.Server-WebServer" class="org.h2.tools.Server"
+ factory-method="createWebServer" depends-on="dataSource"
+ init-method="start" lazy-init="false">
+ <constructor-arg value="-web,-webPort,11111" />
+ </bean>
</beans>
\ No newline at end of file