Configuring Environment Specific Settings
Configuring Environment Specific Settings
Elastic Path provides two files to configure your deployed Elastic Path applications:
- ep.properties: Overwrites property placeholders defined in the application's Spring configuration.
- ep.override.properties: Overwrites the values of any Spring bean in the application.
ep.properties
Using the ep.properties file provides a convenient way to customize your deployed applications. This section describes how to create the ep.properties file and lists the web application settings this file can override.
To create an ep.properties file:
- Create a file named ep.properties in one of the following
configuration directories:
- Windows: C:\ep\conf or C:\Users\<username>\ep\conf
- Linux and OSX: /ep/conf or ~/ep/conf
- In ep.properties, define the property values you want to set and save your changes.
- Restart your server for the changes to take effect.
Configurable ep.properties
Batch Server
Property | Description | Developer default |
---|---|---|
ep.cm.topseller.delay |
Specifies the initial delay (in milliseconds) before the server will start to calculate the top sellers |
30000 |
ep.cm.topseller.interval |
Specifies the delay (in milliseconds) between recalculations of the top sellers |
30000 |
ep.cm.productrecommendation.delay |
Specifies the initial delay (in milliseconds) before the server will start to calculate product recommendations |
30000 |
ep.cm.productrecommendation.interval |
Specifies the delay (in milliseconds) between recalculations of product recommendations |
30000 |
ep.cm.searchterms.aggregator.delay | Specifies the delay (in milliseconds) before the server will start tracking search term activity. | 30000 |
ep.cm.searchterms.aggregator.interval | Specifies the delay (in milliseconds) between updates of search term activity tracking. | 30000 |
Search
Property | Description | Developer default |
---|---|---|
ep.search.contextURL |
The search server web application context |
/searchserver |
ep.search.port.http |
The search server HTTP port |
8080 |
ep.index.build.delay |
Specifies the initial delay (in milliseconds) before the server will start to update the customer search index. |
10000 |
ep.index.build.interval |
Specifies the delay (in milliseconds) between updates of the customer search index. |
5000 |
ep.search.requires.master | When set to true, the Search Server, for which the value is set, becomes the master Search Server. For more information, see Search Server Clustering. | false |
ep.search.triggers | Disables Search Server indexing when set to disabled. This is setting is used to disable the Search slave's indexing. For more information, see Search Server Clustering. | - |
JMS Messaging
Property | Description | Developer default |
---|---|---|
ep.jms.type |
The Java Class type of the JMS Broker Connection Factory. |
org.apache.activemq.pool.PooledConnectionFactory |
ep.jms.factory | The JNDI resource factory used by the application. | org.apache.activemq.jndi.JNDIReferenceFactory |
ep.jms.url |
The URL of the JMS broker. |
tcp://localhost:61616 |
Global Settings
Property | Description | Developer default |
---|---|---|
ep.external.ehcache.xml.path |
Specifies the path to the external Ehcache configuration file. This property affects all web applications (Cortex, CM Server, Search Server and Integration Server). See Configuring Ehcache for more information. The file path in
ep.external.ehcache.xml.path must be absolute. There are three supported
formats as shown in the following examples:
Note:
Additional Slash
The additional slash in file:/// is required by Spring. |
- |
Creating an ep.override.properties file
With the ep.override.properties file, you can override the values of any bean running in a deployed application.
- Navigate to one of the following directories and create the
ep.override.properties file:
- Windows: C:\ep\conf or C:\Users\<username>\ep\conf
- Linux and OSX: /ep/conf or ~/ep/conf
- In the ep.override.properties file, define the required property
values or bean references.
- To override a bean property, see Overriding a bean property
- To override a bean reference, see Overriding a bean reference.
- Restart your server for the changes to take effect.
Overriding a bean property
beanName.propertyName=value
entityManagerFactory.jpaPropertyMap[openjpa.DataCache]=true entityManagerFactory.jpaPropertyMap[openjpa.RemoteCommitProvider]=sjvm
Overriding a bean reference
beanName.propertyName=${newBeanName}
topSellerSchedulingTriggersMerger.mergeList=${topSellerSchedulingTriggers}