OFBiz configuration file
OFBiz is a very good enterprise-level development architecture. It achieves a multi-layer loose coupling structure with great flexibility. The configuration file provides great support for flexibility.
The following describes several important configuration files during development.
1. entityengine. xml file
This file is used to configure the data source, and also includes the configuration files of the database connection pool, transaction implementation class, and field type.
In ofbiz, configure the database in this file. First configure a group-map and then configure the corresponding data source.
2. entitymodel. xml
Ofbiz is essentially a database-oriented design. entitymodel. xml configures entity. entity corresponds to the table in the database, and the field of the entity corresponds to the field in the database table.
Example:
In fact, the configuration is written in the same way as the configuration file used by the OR-Mapping Framework. The attribute name and type are used. In entityengine. if field-typename is configured in xml, the ing is completed based on the specified type. Therefore, a layer is added between the configuration file and the real type to complete the ing, this has a great advantage, making it much easier to replace the database.
3. ofbiz-containers.xml
Various container classes are configured in the container. The container that is frequently modified is the container whose name is catalina-container. embeded tomcat can be used to modify various tomcat configuration items, just like modifying the tomcat configuration file server. modify the port and other information in the same xml format.
Summary:
Of course, ofbiz configuration files include not only these files, but also general. properties and cache. properties. Ofbiz ensures system flexibility through a large number of configuration files.
Getting started with OFBiz Development
Permission Design for OFBiz
For more information about OFBiz, click here.
OFBiz: click here
This article permanently updates the link address: