OFBiz is a very good enterprise-level development architecture that enables multiple layers of loosely coupled structures with great flexibility and configuration files that provide a great support for flexibility.
Here are some of the more important configuration files in development.
1.entityengine.xml File
This file is configured for the data source, and also includes the database connection pool, the configuration of the transaction implementation class, and the configuration file for the field type.
In OFBiz, the configuration of the database in this file, first configure a group-map, and then configure the corresponding data source.
2.entitymodel.xml
OFBiz essence is database-oriented design, entitymodel.xml configuration entity,entity the table in the corresponding database, the Entity field corresponds to the fields in the database table.
Cases:
In fact, the configuration is written similar to the or-mapping framework using a configuration file, property names, property types. The configuration of the field-typename in Entityengine.xml, depending on the configuration to find the specified type to complete the mapping, equivalent to the configuration file and the real type in the middle of the addition of a layer, to complete the mapping, this is a great benefit, the replacement of the database is much easier.
3.ofbiz-containers.xml
It is configured with a variety of container classes, often modified container is the name of the Catalina-container container, using embeded tomcat, which can modify the various tomcat configuration items, As we modify the Tomcat configuration file Server.xml, we modify the ports and other information inside.
Summary:
Of course ofbiz configuration file is not only these, but also include many, such as: General.properties, cache.properties and so on. OFBiz has a large number of configuration files to ensure system flexibility.
ofbiz--configuration file