Escenic Community Expansion specific setting files
As of VCE 3.0, the
${user.home}/.ndc-gce/environment.properties
configuration file is no longer required or supported. VCE is now
configured using a properties file named
CommunityEngine.properties
which is used in spring
configuration. This file should be put in one of the following
locations:
-
/etc/escenic/engine/instance/${com.escenic.instance}/com/escenic/community/
-
/etc/escenic/engine/host/${escenic.server}/com/escenic/community/
-
/etc/escenic/engine/common/com/escenic/community/
-
${com.escenic.config}/com/escenic/community/
Example configurations are available under the
$VCE_HOME/misc/siteconfig/
directory.
The properties file CommunityEngine.properties
is
structured as follows:
# Hibernate & database configuration # This property tells hibernate whether to show the SQL executed by hibernate hibernate.show_sql=false # This property tells hibernate which syntax to use when it comes to database # specific SQL queries hibernate.dialect=org.hibernate.dialect.MySQLDialect # This property tells Hibernate where to find the JNDI data source # Please note that different application servers are configured differently. # Also the name of the DataSource can be different. For example, Tomcat adds # a prefix 'java:comp/env" to a configured DataSource. So, if the data source # is configured by the name 'jdbc/ecome', then the JNDI resource location will # be as follows: hibernate.connection.datasource=java:comp/env/jdbc/ecome # messaging configuration mail.host=your mailhost mail.default.from=mailfrom@you.com # format is <publication-id>:<user-name> mail.adminusers=12:test,1:glace_admin
The Statistics
plug-in can be configured to use a
datasource different than the one used by VCE. To configure Statistics
plug-in to use a separate data source,
StatisticsPlugin.properties
file has to be configured.
This file should be put in one of the following locations:
-
/etc/escenic/engine/instance/${com.escenic.instance}/com/escenic/community/statistics/
-
/etc/escenic/engine/host/${escenic.server}/com/escenic/community/statistics/
-
/etc/escenic/engine/common/com/escenic/community/statistics
-
${com.escenic.config}/com/escenic/community/statistics/
The properties file StatisticsPlugin.properties
is structured as follows:
# Hibernate database configuration for Statistics plug-in # This property tells hibernate whether to show the SQL executed by hibernate hibernate.show_sql=false # This property tells hibernate which syntax to use when it comes to database # specific SQL queries hibernate.dialect=org.hibernate.dialect.MySQLDialect # This property tells hibernate where to find the JNDI data source # Please note that different application servers are configured differently. # Also the name of the DataSource can be different. For example, Tomcat adds # a prefix 'java:comp/env" to a configured DataSource. So, if the data source # is configured by the name 'jdbc/ecome', then the JNDI resource location will # be as follows: hibernate.connection.datasource=java:comp/env/jdbc/ecome/statistics
Please note that as of VCE release 2.6-13, the database configuration no longer supports any configuration other than JNDI configured DataSource.