mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Added sample configuration files for database and data location settings
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2623 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -0,0 +1,5 @@
|
|||||||
|
#
|
||||||
|
# Sample custom content and index data location
|
||||||
|
#
|
||||||
|
|
||||||
|
dir.root=/srv/alfresco/data
|
@@ -0,0 +1,41 @@
|
|||||||
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
|
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
This shows the common minimum configuration overrides.
|
||||||
|
By default, the content and indexes are located at a relative location, which should only
|
||||||
|
be used when doing a quick preview of the Alfresco server.
|
||||||
|
-->
|
||||||
|
<beans>
|
||||||
|
|
||||||
|
<!-- overriding to point to custom properties -->
|
||||||
|
<bean id="repository-properties" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
|
||||||
|
<property name="ignoreUnresolvablePlaceholders">
|
||||||
|
<value>true</value>
|
||||||
|
</property>
|
||||||
|
<property name="locations">
|
||||||
|
<list>
|
||||||
|
<value>classpath:alfresco/repository.properties</value>
|
||||||
|
<value>classpath:alfresco/version.properties</value>
|
||||||
|
<value>classpath:alfresco/domain/transaction.properties</value>
|
||||||
|
|
||||||
|
<!-- Override data location properties -->
|
||||||
|
<value>classpath:alfresco/extension/custom-data-location.properties</value>
|
||||||
|
<!-- Override database connection properties -->
|
||||||
|
<value>classpath:alfresco/extension/custom-db-connection.properties</value>
|
||||||
|
</list>
|
||||||
|
</property>
|
||||||
|
</bean>
|
||||||
|
|
||||||
|
<bean id="hibernateConfigProperties" class="org.springframework.beans.factory.config.PropertiesFactoryBean">
|
||||||
|
<property name="locations">
|
||||||
|
<list>
|
||||||
|
<value>classpath:alfresco/domain/hibernate-cfg.properties</value>
|
||||||
|
|
||||||
|
<!-- Override hibernate dialect -->
|
||||||
|
<value>classpath:alfresco/extension/custom-hibernate-dialect.properties</value>
|
||||||
|
</list>
|
||||||
|
</property>
|
||||||
|
</bean>
|
||||||
|
|
||||||
|
</beans>
|
@@ -0,0 +1,24 @@
|
|||||||
|
#
|
||||||
|
# Sample database connection properties
|
||||||
|
#
|
||||||
|
|
||||||
|
#db.username=alfresco
|
||||||
|
#db.password=alfresco
|
||||||
|
|
||||||
|
#
|
||||||
|
# MySQL connection (This is default and requires mysql-connector-java-3.1.12-bin.jar, which ships with the Alfresco server)
|
||||||
|
#
|
||||||
|
#db.driver=org.gjt.mm.mysql.Driver
|
||||||
|
#db.url=jdbc:mysql://localhost/alfresco
|
||||||
|
|
||||||
|
#
|
||||||
|
# Oracle connection (requires ojdbc14_g.jar or equivalent jar in shared libraries location)
|
||||||
|
#
|
||||||
|
#db.driver=oracle.jdbc.OracleDriver
|
||||||
|
#db.url=jdbc:oracle:thin:@localhost:1521:alfresco
|
||||||
|
|
||||||
|
#
|
||||||
|
# Sybase connection (requires jconn2d.jar or equivalent jar in shared libraries location)
|
||||||
|
#
|
||||||
|
#db.driver=com.sybase.jdbc2.jdbc.SybDriver
|
||||||
|
#db.url=jdbc:sybase:Tds:localhost:2638/alfresco
|
@@ -0,0 +1,18 @@
|
|||||||
|
#
|
||||||
|
# Sample Hibernate configuration for changing Database dialect
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# MySQL dialect (default)
|
||||||
|
#
|
||||||
|
#hibernate.dialect=org.hibernate.dialect.MySQLDialect
|
||||||
|
|
||||||
|
#
|
||||||
|
# Oracle dialect
|
||||||
|
#
|
||||||
|
#hibernate.dialect=org.hibernate.dialect.Oracle9Dialect
|
||||||
|
|
||||||
|
#
|
||||||
|
# Sybase dialect
|
||||||
|
#
|
||||||
|
#hibernate.dialect=org.hibernate.dialect.SybaseAnywhereDialect
|
Reference in New Issue
Block a user