OFBiz configuration file

Source: Internet
Author: User

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:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.